Lines Matching refs:statp
826 struct kstatfs *statp)
844 statp->f_type = XFS_SUPER_MAGIC;
845 statp->f_namelen = MAXNAMELEN - 1;
848 statp->f_fsid = u64_to_fsid(id);
855 statp->f_bsize = sbp->sb_blocksize;
857 statp->f_blocks = sbp->sb_dblocks - lsize;
860 /* make sure statp->f_bfree does not underflow */
861 statp->f_bfree = max_t(int64_t, 0,
863 statp->f_bavail = statp->f_bfree;
865 fakeinos = XFS_FSB_TO_INO(mp, statp->f_bfree);
866 statp->f_files = min(icount + fakeinos, (uint64_t)XFS_MAXINUMBER);
868 statp->f_files = min_t(typeof(statp->f_files),
869 statp->f_files,
873 statp->f_files = max_t(typeof(statp->f_files),
874 statp->f_files,
877 /* make sure statp->f_ffree does not underflow */
878 ffree = statp->f_files - (icount - ifree);
879 statp->f_ffree = max_t(int64_t, ffree, 0);
885 xfs_qm_statvfs(ip, statp);
891 statp->f_blocks = sbp->sb_rblocks;
893 statp->f_bavail = statp->f_bfree = freertx * sbp->sb_rextsize;