Lines Matching refs:statp
781 struct kstatfs *statp) in xfs_fs_statfs() argument
793 statp->f_type = XFS_SUPER_MAGIC; in xfs_fs_statfs()
794 statp->f_namelen = MAXNAMELEN - 1; in xfs_fs_statfs()
797 statp->f_fsid = u64_to_fsid(id); in xfs_fs_statfs()
804 statp->f_bsize = sbp->sb_blocksize; in xfs_fs_statfs()
806 statp->f_blocks = sbp->sb_dblocks - lsize; in xfs_fs_statfs()
810 statp->f_bfree = max_t(int64_t, fdblocks - mp->m_alloc_set_aside, 0); in xfs_fs_statfs()
811 statp->f_bavail = statp->f_bfree; in xfs_fs_statfs()
813 fakeinos = XFS_FSB_TO_INO(mp, statp->f_bfree); in xfs_fs_statfs()
814 statp->f_files = min(icount + fakeinos, (uint64_t)XFS_MAXINUMBER); in xfs_fs_statfs()
816 statp->f_files = min_t(typeof(statp->f_files), in xfs_fs_statfs()
817 statp->f_files, in xfs_fs_statfs()
821 statp->f_files = max_t(typeof(statp->f_files), in xfs_fs_statfs()
822 statp->f_files, in xfs_fs_statfs()
826 ffree = statp->f_files - (icount - ifree); in xfs_fs_statfs()
827 statp->f_ffree = max_t(int64_t, ffree, 0); in xfs_fs_statfs()
833 xfs_qm_statvfs(ip, statp); in xfs_fs_statfs()
837 statp->f_blocks = sbp->sb_rblocks; in xfs_fs_statfs()
838 statp->f_bavail = statp->f_bfree = in xfs_fs_statfs()