f2fs: fix incorrect f_bfree calculation in ->statfs
authorChao Yu <yuchao0@huawei.com>
Wed, 6 Jul 2016 06:13:07 +0000 (14:13 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 8 Jul 2016 17:33:32 +0000 (10:33 -0700)
commit3e6d0b4d9c1cd3bbe5bacbf9d6de682be2bce8e4
treecc40078790713663ae5c3d897265695707517ffe
parentec795418c41850056feb956534edf059dc1155d4
f2fs: fix incorrect f_bfree calculation in ->statfs

As manual described, f_bfree indicates total free blocks in fs, in f2fs, it
includes two parts: visible free blocks and over-provision blocks. This
patch corrrects the calculation.

fsblkcnt_t   f_bfree;   /* free blocks in fs */

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c