f2fs: report delalloc reserve as non-free in statfs for project quota
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Mon, 11 May 2020 06:15:18 +0000 (09:15 +0300)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 12 May 2020 03:36:47 +0000 (20:36 -0700)
commitbaaa7ebf25c78c5cb712fac16b7f549100beddd3
treed9f7e13f31b3a63540d78e4e775767e62c42d3de
parent48abe91ac1ad27cd5a5709f983dcf58f2b9a6b70
f2fs: report delalloc reserve as non-free in statfs for project quota

This reserved space isn't committed yet but cannot be used for
allocations. For userspace it has no difference from used space.

See the same fix in ext4 commit f06925c73942 ("ext4: report delalloc
reserve as non-free in statfs for project quota").

Fixes: ddc34e328d06 ("f2fs: introduce f2fs_statfs_project")
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c