]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
f2fs: fix miscounted block limit in f2fs_statfs_project()
authorChengguang Xu <cgxu519@mykernel.net>
Sat, 4 Jan 2020 14:20:03 +0000 (22:20 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 13 Mar 2020 04:31:00 +0000 (00:31 -0400)
commitd5629f3edb6913e2380199f9f49b879b785bd835
treefd810a366767cab19b1c99eb7c6a24a278f3b5db
parent4daeb71b89bd0fbabd30cf9b41da39be0bd7519e
f2fs: fix miscounted block limit in f2fs_statfs_project()

BugLink: https://bugs.launchpad.net/bugs/1866678
commit acdf2172172a511f97fa21ed0ee7609a6d3b3a07 upstream.

statfs calculates Total/Used/Avail disk space in block unit,
so we should translate soft/hard prjquota limit to block unit
as well.

Below testing result shows the block/inode numbers of
Total/Used/Avail from df command are all correct afer
applying this patch.

[root@localhost quota-tools]\# ./repquota -P /dev/sdb1

Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/f2fs/super.c