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