diff options
author | Ye Yin <dbyin@tencent.com> | 2019-02-04 08:54:25 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-12 19:47:21 +0100 |
commit | 757332c643ca474dae6cfdacb5a1fce68580c82d (patch) | |
tree | ee9260b6aa9bd443979d6c2fdb751009ef78e2d0 /fs | |
parent | 886f0de16239a2596aa08a4fbaed10ee5b21a103 (diff) | |
download | linux-stable-757332c643ca474dae6cfdacb5a1fce68580c82d.tar.gz linux-stable-757332c643ca474dae6cfdacb5a1fce68580c82d.tar.bz2 linux-stable-757332c643ca474dae6cfdacb5a1fce68580c82d.zip |
fs/xfs: fix f_ffree value for statfs when project quota is set
commit de7243057e7cefa923fa5f467c0f1ec24eef41d2 upsream.
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>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_qm_bhv.c | 2 |
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; } } |