aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Qiu2020-12-07 06:01:14 -0600
committerJaegeuk Kim2020-12-21 15:33:19 -0600
commitb0858a20fe56b7a060b32695c1ae10b715986f94 (patch)
treef11a28862c1ec16870a039a92e9bad7d037169ed
parentfb7f57b3957fd1846acfd8f31f33462fd5aacae8 (diff)
downloadkernel-b0858a20fe56b7a060b32695c1ae10b715986f94.tar.gz
kernel-b0858a20fe56b7a060b32695c1ae10b715986f94.tar.xz
kernel-b0858a20fe56b7a060b32695c1ae10b715986f94.zip
f2fs: inline: fix wrong inline inode stat
Miss to stat inline inode in f2fs_recover_inline_data. Signed-off-by: Jack Qiu <jack.qiu@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/inline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c
index 9822f56359aa..806ebabf5870 100644
--- a/fs/f2fs/inline.c
+++ b/fs/f2fs/inline.c
@@ -299,6 +299,7 @@ process_inline:
299 if (IS_ERR(ipage)) 299 if (IS_ERR(ipage))
300 return PTR_ERR(ipage); 300 return PTR_ERR(ipage);
301 f2fs_truncate_inline_inode(inode, ipage, 0); 301 f2fs_truncate_inline_inode(inode, ipage, 0);
302 stat_dec_inline_inode(inode);
302 clear_inode_flag(inode, FI_INLINE_DATA); 303 clear_inode_flag(inode, FI_INLINE_DATA);
303 f2fs_put_page(ipage, 1); 304 f2fs_put_page(ipage, 1);
304 } else if (ri && (ri->i_inline & F2FS_INLINE_DATA)) { 305 } else if (ri && (ri->i_inline & F2FS_INLINE_DATA)) {
@@ -307,6 +308,7 @@ process_inline:
307 ret = f2fs_truncate_blocks(inode, 0, false); 308 ret = f2fs_truncate_blocks(inode, 0, false);
308 if (ret) 309 if (ret)
309 return ret; 310 return ret;
311 stat_inc_inline_inode(inode);
310 goto process_inline; 312 goto process_inline;
311 } 313 }
312 return 0; 314 return 0;