f2fs: fix incorrect free inode count in ->statfs
authorChao Yu <yuchao0@huawei.com>
Fri, 18 Nov 2016 14:27:41 +0000 (22:27 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 25 Nov 2016 18:16:07 +0000 (10:16 -0800)
commitb08b12d2ddc85b977a0531470cf6a7158289aaaf
treefa68a6a8226bd15f9aca25ff2a790b93d052d85e
parentb4ceec29219e340178baa9c5f17bf97a42951cc8
f2fs: fix incorrect free inode count in ->statfs

While calculating inode count that we can create at most in the left space,
we should consider space which data/node blocks occupied, since we create
data/node mixly in main area. So fix the wrong calculation in ->statfs.

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