Lines Matching refs:statp
787 struct kstatfs *statp)
799 statp->f_type = XFS_SUPER_MAGIC;
800 statp->f_namelen = MAXNAMELEN - 1;
803 statp->f_fsid = u64_to_fsid(id);
810 statp->f_bsize = sbp->sb_blocksize;
812 statp->f_blocks = sbp->sb_dblocks - lsize;
815 /* make sure statp->f_bfree does not underflow */
816 statp->f_bfree = max_t(int64_t, fdblocks - mp->m_alloc_set_aside, 0);
817 statp->f_bavail = statp->f_bfree;
819 fakeinos = XFS_FSB_TO_INO(mp, statp->f_bfree);
820 statp->f_files = min(icount + fakeinos, (uint64_t)XFS_MAXINUMBER);
822 statp->f_files = min_t(typeof(statp->f_files),
823 statp->f_files,
827 statp->f_files = max_t(typeof(statp->f_files),
828 statp->f_files,
831 /* make sure statp->f_ffree does not underflow */
832 ffree = statp->f_files - (icount - ifree);
833 statp->f_ffree = max_t(int64_t, ffree, 0);
839 xfs_qm_statvfs(ip, statp);
843 statp->f_blocks = sbp->sb_rblocks;
844 statp->f_bavail = statp->f_bfree =