/drivers/staging/lustre/lustre/obdclass/ |
D | statfs_pack.c | 49 void statfs_unpack(struct kstatfs *sfs, struct obd_statfs *osfs) in statfs_unpack() argument 52 sfs->f_type = osfs->os_type; in statfs_unpack() 53 sfs->f_blocks = osfs->os_blocks; in statfs_unpack() 54 sfs->f_bfree = osfs->os_bfree; in statfs_unpack() 55 sfs->f_bavail = osfs->os_bavail; in statfs_unpack() 56 sfs->f_files = osfs->os_files; in statfs_unpack() 57 sfs->f_ffree = osfs->os_ffree; in statfs_unpack() 58 sfs->f_bsize = osfs->os_bsize; in statfs_unpack() 59 sfs->f_namelen = osfs->os_namelen; in statfs_unpack()
|
D | lprocfs_status.c | 375 struct obd_statfs osfs; in blocksize_show() local 376 int rc = obd_statfs(NULL, obd->obd_self_export, &osfs, in blocksize_show() 380 return sprintf(buf, "%u\n", osfs.os_bsize); in blocksize_show() 391 struct obd_statfs osfs; in kbytestotal_show() local 392 int rc = obd_statfs(NULL, obd->obd_self_export, &osfs, in kbytestotal_show() 396 __u32 blk_size = osfs.os_bsize >> 10; in kbytestotal_show() 397 __u64 result = osfs.os_blocks; in kbytestotal_show() 414 struct obd_statfs osfs; in kbytesfree_show() local 415 int rc = obd_statfs(NULL, obd->obd_self_export, &osfs, in kbytesfree_show() 419 __u32 blk_size = osfs.os_bsize >> 10; in kbytesfree_show() [all …]
|
/drivers/staging/lustre/lustre/lov/ |
D | lov_request.c | 558 int lov_fini_statfs(struct obd_device *obd, struct obd_statfs *osfs, in lov_fini_statfs() argument 564 if (osfs->os_files != LOV_U64_MAX) in lov_fini_statfs() 565 lov_do_div64(osfs->os_files, expected_stripes); in lov_fini_statfs() 566 if (osfs->os_ffree != LOV_U64_MAX) in lov_fini_statfs() 567 lov_do_div64(osfs->os_ffree, expected_stripes); in lov_fini_statfs() 570 memcpy(&obd->obd_osfs, osfs, sizeof(*osfs)); in lov_fini_statfs() 594 void lov_update_statfs(struct obd_statfs *osfs, struct obd_statfs *lov_sfs, in lov_update_statfs() argument 601 memcpy(osfs, lov_sfs, sizeof(*lov_sfs)); in lov_update_statfs() 603 if (osfs->os_bsize != lov_sfs->os_bsize) { in lov_update_statfs() 606 tmp = osfs->os_bsize | lov_sfs->os_bsize; in lov_update_statfs() [all …]
|
D | lov_internal.h | 187 void lov_update_statfs(struct obd_statfs *osfs, struct obd_statfs *lov_sfs, 189 int lov_fini_statfs(struct obd_device *obd, struct obd_statfs *osfs,
|
D | lov_obd.c | 1365 struct obd_statfs *osfs, __u64 max_age, __u32 flags) in lov_statfs() argument 1377 oinfo.oi_osfs = osfs; in lov_statfs()
|
/drivers/staging/lustre/lustre/llite/ |
D | llite_lib.c | 149 struct obd_statfs *osfs = NULL; in client_common_fill_super() local 168 osfs = kzalloc(sizeof(*osfs), GFP_NOFS); in client_common_fill_super() 169 if (!osfs) { in client_common_fill_super() 256 err = obd_statfs(NULL, sbi->ll_md_exp, osfs, in client_common_fill_super() 297 LASSERT(osfs->os_bsize); in client_common_fill_super() 298 sb->s_blocksize = osfs->os_bsize; in client_common_fill_super() 299 sb->s_blocksize_bits = log2(osfs->os_bsize); in client_common_fill_super() 302 sbi->ll_namelen = osfs->os_namelen; in client_common_fill_super() 556 kfree(osfs); in client_common_fill_super() 575 kfree(osfs); in client_common_fill_super() [all …]
|
D | lproc_llite.c | 56 struct obd_statfs osfs; in blocksize_show() local 59 rc = ll_statfs_internal(sbi->ll_sb, &osfs, in blocksize_show() 63 return sprintf(buf, "%u\n", osfs.os_bsize); in blocksize_show() 74 struct obd_statfs osfs; in kbytestotal_show() local 77 rc = ll_statfs_internal(sbi->ll_sb, &osfs, in kbytestotal_show() 81 __u32 blk_size = osfs.os_bsize >> 10; in kbytestotal_show() 82 __u64 result = osfs.os_blocks; in kbytestotal_show() 99 struct obd_statfs osfs; in kbytesfree_show() local 102 rc = ll_statfs_internal(sbi->ll_sb, &osfs, in kbytesfree_show() 106 __u32 blk_size = osfs.os_bsize >> 10; in kbytesfree_show() [all …]
|
D | llite_internal.h | 771 int ll_statfs_internal(struct super_block *sb, struct obd_statfs *osfs,
|
/drivers/staging/lustre/lustre/include/ |
D | obd_class.h | 1054 struct obd_statfs *osfs, __u64 max_age, in obd_statfs_rqset() argument 1065 oinfo.oi_osfs = osfs; in obd_statfs_rqset() 1078 struct obd_statfs *osfs, __u64 max_age, in obd_statfs() argument 1093 rc = OBP(obd, statfs)(env, exp, osfs, max_age, flags); in obd_statfs() 1096 memcpy(&obd->obd_osfs, osfs, sizeof(obd->obd_osfs)); in obd_statfs() 1106 memcpy(osfs, &obd->obd_osfs, sizeof(*osfs)); in obd_statfs()
|
D | lustre_lib.h | 104 void statfs_unpack(struct kstatfs *sfs, struct obd_statfs *osfs);
|
D | obd.h | 1016 struct obd_statfs *osfs, __u64 max_age, __u32 flags);
|
/drivers/staging/lustre/lustre/lmv/ |
D | lmv_obd.c | 1388 struct obd_statfs *osfs, __u64 max_age, __u32 flags) in lmv_statfs() argument 1418 *osfs = *temp; in lmv_statfs() 1428 osfs->os_bavail += temp->os_bavail; in lmv_statfs() 1429 osfs->os_blocks += temp->os_blocks; in lmv_statfs() 1430 osfs->os_ffree += temp->os_ffree; in lmv_statfs() 1431 osfs->os_files += temp->os_files; in lmv_statfs()
|
/drivers/staging/lustre/lustre/mdc/ |
D | mdc_request.c | 1045 struct obd_export *exp, struct obd_statfs *osfs, in mdc_statfs() argument 1094 *osfs = *msfs; in mdc_statfs()
|
/drivers/staging/lustre/lustre/osc/ |
D | osc_request.c | 2468 struct obd_statfs *osfs, __u64 max_age, __u32 flags) in osc_statfs() argument 2523 *osfs = *msfs; in osc_statfs()
|