f2fs: fix to account compressed inode correctly
authorChao Yu <yuchao0@huawei.com>
Tue, 10 Mar 2020 12:50:07 +0000 (20:50 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 11 Mar 2020 15:25:38 +0000 (08:25 -0700)
commit96f5b4fa567040360dc57fd39b8e1a85a3e0132a
treedb70ec95a4a09cf0ef68ce1339fd97d6745883cb
parent99eabb914e0f870445d065e83e857507f9728a33
f2fs: fix to account compressed inode correctly

stat_inc_compr_inode() needs to check FI_COMPRESSED_FILE flag, so
in f2fs_disable_compressed_file(), we should call stat_dec_compr_inode()
before clearing FI_COMPRESSED_FILE flag.

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