Home
last modified time | relevance | path

Searched refs:cpstat (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/fs/nilfs2/
H A Dsysfs.c257 struct nilfs_cpstat cpstat; in nilfs_checkpoints_checkpoints_number_show() local
261 err = nilfs_cpfile_get_stat(nilfs->ns_cpfile, &cpstat); in nilfs_checkpoints_checkpoints_number_show()
269 ncheckpoints = cpstat.cs_ncps; in nilfs_checkpoints_checkpoints_number_show()
280 struct nilfs_cpstat cpstat; in nilfs_checkpoints_snapshots_number_show() local
284 err = nilfs_cpfile_get_stat(nilfs->ns_cpfile, &cpstat); in nilfs_checkpoints_snapshots_number_show()
292 nsnapshots = cpstat.cs_nsss; in nilfs_checkpoints_snapshots_number_show()
H A Dcpfile.c933 * @cpstat: pointer to a structure of checkpoint statistics
938 * stored in the place pointed by @cpstat. On error, one of the following
945 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()
H A 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()
/kernel/linux/linux-6.6/fs/nilfs2/
H A Dsysfs.c246 struct nilfs_cpstat cpstat; in nilfs_checkpoints_checkpoints_number_show() local
250 err = nilfs_cpfile_get_stat(nilfs->ns_cpfile, &cpstat); in nilfs_checkpoints_checkpoints_number_show()
258 ncheckpoints = cpstat.cs_ncps; in nilfs_checkpoints_checkpoints_number_show()
269 struct nilfs_cpstat cpstat; in nilfs_checkpoints_snapshots_number_show() local
273 err = nilfs_cpfile_get_stat(nilfs->ns_cpfile, &cpstat); in nilfs_checkpoints_snapshots_number_show()
281 nsnapshots = cpstat.cs_nsss; in nilfs_checkpoints_snapshots_number_show()
H A Dioctl.c325 struct nilfs_cpstat cpstat; in nilfs_ioctl_get_cpstat() local
329 ret = nilfs_cpfile_get_stat(nilfs->ns_cpfile, &cpstat); in nilfs_ioctl_get_cpstat()
334 if (copy_to_user(argp, &cpstat, sizeof(cpstat))) in nilfs_ioctl_get_cpstat()
H A Dcpfile.c933 * @cpstat: pointer to a structure of checkpoint statistics
938 * stored in the place pointed by @cpstat. On error, one of the following
945 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()

Completed in 10 milliseconds