summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_qm_bhv.c
diff options
context:
space:
mode:
authorYe Yin <dbyin@tencent.com>2018-11-23 18:55:18 +0100
committerDarrick J. Wong <darrick.wong@oracle.com>2018-11-27 00:01:37 +0100
commitde7243057e7cefa923fa5f467c0f1ec24eef41d2 (patch)
tree2e9ba59bb433dd241c4fe8a028685ea842ec6cfe /fs/xfs/xfs_qm_bhv.c
parentiomap: readpages doesn't zero page tail beyond EOF (diff)
downloadlinux-de7243057e7cefa923fa5f467c0f1ec24eef41d2.tar.xz
linux-de7243057e7cefa923fa5f467c0f1ec24eef41d2.zip
fs/xfs: fix f_ffree value for statfs when project quota is set
When project is set, we should use inode limit minus the used count Signed-off-by: Ye Yin <dbyin@tencent.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_qm_bhv.c')
-rw-r--r--fs/xfs/xfs_qm_bhv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_qm_bhv.c b/fs/xfs/xfs_qm_bhv.c
index 73a1d77ec187..3091e4bc04ef 100644
--- a/fs/xfs/xfs_qm_bhv.c
+++ b/fs/xfs/xfs_qm_bhv.c
@@ -40,7 +40,7 @@ xfs_fill_statvfs_from_dquot(
statp->f_files = limit;
statp->f_ffree =
(statp->f_files > dqp->q_res_icount) ?
- (statp->f_ffree - dqp->q_res_icount) : 0;
+ (statp->f_files - dqp->q_res_icount) : 0;
}
}