Searched refs:sustat (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/fs/nilfs2/ |
H A D | sufile.c | 585 * @sustat: pointer to a structure of segment usage statistics 591 * stored in the place pointed by @sustat. On error, one of the following 598 int nilfs_sufile_get_stat(struct inode *sufile, struct nilfs_sustat *sustat) in nilfs_sufile_get_stat() argument 614 sustat->ss_nsegs = nilfs_sufile_get_nsegments(sufile); in nilfs_sufile_get_stat() 615 sustat->ss_ncleansegs = le64_to_cpu(header->sh_ncleansegs); in nilfs_sufile_get_stat() 616 sustat->ss_ndirtysegs = le64_to_cpu(header->sh_ndirtysegs); in nilfs_sufile_get_stat() 617 sustat->ss_ctime = nilfs->ns_ctime; in nilfs_sufile_get_stat() 618 sustat->ss_nongc_ctime = nilfs->ns_nongc_ctime; in nilfs_sufile_get_stat() 620 sustat->ss_prot_seq = nilfs->ns_prot_seq; in nilfs_sufile_get_stat()
|
H A D | ioctl.c | 407 struct nilfs_sustat sustat; in nilfs_ioctl_get_sustat() local 411 ret = nilfs_sufile_get_stat(nilfs->ns_sufile, &sustat); in nilfs_ioctl_get_sustat() 416 if (copy_to_user(argp, &sustat, sizeof(sustat))) in nilfs_ioctl_get_sustat()
|
H A D | sysfs.c | 399 struct nilfs_sustat sustat; in nilfs_segments_dirty_segments_show() local 403 err = nilfs_sufile_get_stat(nilfs->ns_sufile, &sustat); in nilfs_segments_dirty_segments_show() 411 return snprintf(buf, PAGE_SIZE, "%llu\n", sustat.ss_ndirtysegs); in nilfs_segments_dirty_segments_show()
|
/kernel/linux/linux-6.6/fs/nilfs2/ |
H A D | sufile.c | 585 * @sustat: pointer to a structure of segment usage statistics 591 * stored in the place pointed by @sustat. On error, one of the following 598 int nilfs_sufile_get_stat(struct inode *sufile, struct nilfs_sustat *sustat) in nilfs_sufile_get_stat() argument 614 sustat->ss_nsegs = nilfs_sufile_get_nsegments(sufile); in nilfs_sufile_get_stat() 615 sustat->ss_ncleansegs = le64_to_cpu(header->sh_ncleansegs); in nilfs_sufile_get_stat() 616 sustat->ss_ndirtysegs = le64_to_cpu(header->sh_ndirtysegs); in nilfs_sufile_get_stat() 617 sustat->ss_ctime = nilfs->ns_ctime; in nilfs_sufile_get_stat() 618 sustat->ss_nongc_ctime = nilfs->ns_nongc_ctime; in nilfs_sufile_get_stat() 620 sustat->ss_prot_seq = nilfs->ns_prot_seq; in nilfs_sufile_get_stat()
|
H A D | ioctl.c | 392 struct nilfs_sustat sustat; in nilfs_ioctl_get_sustat() local 396 ret = nilfs_sufile_get_stat(nilfs->ns_sufile, &sustat); in nilfs_ioctl_get_sustat() 401 if (copy_to_user(argp, &sustat, sizeof(sustat))) in nilfs_ioctl_get_sustat()
|
H A D | sysfs.c | 389 struct nilfs_sustat sustat; in nilfs_segments_dirty_segments_show() local 393 err = nilfs_sufile_get_stat(nilfs->ns_sufile, &sustat); in nilfs_segments_dirty_segments_show() 401 return sysfs_emit(buf, "%llu\n", sustat.ss_ndirtysegs); in nilfs_segments_dirty_segments_show()
|
Completed in 10 milliseconds