Home
last modified time | relevance | path

Searched refs:cpstat (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/fs/nilfs2/
Dsysfs.c259 struct nilfs_cpstat cpstat; in nilfs_checkpoints_checkpoints_number_show() local
263 err = nilfs_cpfile_get_stat(nilfs->ns_cpfile, &cpstat); in nilfs_checkpoints_checkpoints_number_show()
271 ncheckpoints = cpstat.cs_ncps; in nilfs_checkpoints_checkpoints_number_show()
282 struct nilfs_cpstat cpstat; in nilfs_checkpoints_snapshots_number_show() local
286 err = nilfs_cpfile_get_stat(nilfs->ns_cpfile, &cpstat); in nilfs_checkpoints_snapshots_number_show()
294 nsnapshots = cpstat.cs_nsss; in nilfs_checkpoints_snapshots_number_show()
Dioctl.c340 struct nilfs_cpstat cpstat; in nilfs_ioctl_get_cpstat() local
344 ret = nilfs_cpfile_get_stat(nilfs->ns_cpfile, &cpstat); in nilfs_ioctl_get_cpstat()
349 if (copy_to_user(argp, &cpstat, sizeof(cpstat))) in nilfs_ioctl_get_cpstat()
Dcpfile.c945 int nilfs_cpfile_get_stat(struct inode *cpfile, struct nilfs_cpstat *cpstat) in nilfs_cpfile_get_stat() argument
959 cpstat->cs_cno = nilfs_mdt_cno(cpfile); in nilfs_cpfile_get_stat()
960 cpstat->cs_ncps = le64_to_cpu(header->ch_ncheckpoints); in nilfs_cpfile_get_stat()
961 cpstat->cs_nsss = le64_to_cpu(header->ch_nsnapshots); in nilfs_cpfile_get_stat()