Lines Matching defs:statp
819 struct kstatfs *statp)
837 statp->f_type = XFS_SUPER_MAGIC;
838 statp->f_namelen = MAXNAMELEN - 1;
841 statp->f_fsid = u64_to_fsid(id);
848 statp->f_bsize = sbp->sb_blocksize;
850 statp->f_blocks = sbp->sb_dblocks - lsize;
853 /* make sure statp->f_bfree does not underflow */
854 statp->f_bfree = max_t(int64_t, 0,
856 statp->f_bavail = statp->f_bfree;
858 fakeinos = XFS_FSB_TO_INO(mp, statp->f_bfree);
859 statp->f_files = min(icount + fakeinos, (uint64_t)XFS_MAXINUMBER);
861 statp->f_files = min_t(typeof(statp->f_files),
862 statp->f_files,
866 statp->f_files = max_t(typeof(statp->f_files),
867 statp->f_files,
870 /* make sure statp->f_ffree does not underflow */
871 ffree = statp->f_files - (icount - ifree);
872 statp->f_ffree = max_t(int64_t, ffree, 0);
878 xfs_qm_statvfs(ip, statp);
884 statp->f_blocks = sbp->sb_rblocks;
886 statp->f_bavail = statp->f_bfree = xfs_rtx_to_rtb(mp, freertx);