diff options
author | Jack Qiu <jack.qiu@huawei.com> | 2020-12-07 13:01:14 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-12-08 23:25:41 +0100 |
commit | 84921561532f771bd338e7791bf275b2b605d642 (patch) | |
tree | f7b5759bbac5767bd254d6792b35ffa6d0ba362c | |
parent | f2fs: inline: correct comment in f2fs_recover_inline_data (diff) | |
download | linux-84921561532f771bd338e7791bf275b2b605d642.tar.xz linux-84921561532f771bd338e7791bf275b2b605d642.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.c | 2 |
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: if (IS_ERR(ipage)) return PTR_ERR(ipage); f2fs_truncate_inline_inode(inode, ipage, 0); + stat_dec_inline_inode(inode); clear_inode_flag(inode, FI_INLINE_DATA); f2fs_put_page(ipage, 1); } else if (ri && (ri->i_inline & F2FS_INLINE_DATA)) { @@ -307,6 +308,7 @@ process_inline: ret = f2fs_truncate_blocks(inode, 0, false); if (ret) return ret; + stat_inc_inline_inode(inode); goto process_inline; } return 0; |