fs/xfs: fix f_ffree value for statfs when project quota is set
authorYe Yin <dbyin@tencent.com>
Mon, 4 Feb 2019 16:54:25 +0000 (08:54 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 18:47:21 +0000 (19:47 +0100)
commit757332c643ca474dae6cfdacb5a1fce68580c82d
treeee9260b6aa9bd443979d6c2fdb751009ef78e2d0
parent886f0de16239a2596aa08a4fbaed10ee5b21a103
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>
fs/xfs/xfs_qm_bhv.c