f2fs: count inline_xx in do_read_inode

In do_read_inode, if we failed __recover_inline_status, the inode has inline
flag without increasing its count.
Later, f2fs_evict_inode will decrease the count, which causes -1.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim 2014-12-05 10:51:50 -08:00
parent 9be32d72be
commit 9d1015dd4c
1 changed files with 4 additions and 2 deletions

View File

@ -148,6 +148,10 @@ static int do_read_inode(struct inode *inode)
__get_inode_rdev(inode, ri);
f2fs_put_page(node_page, 1);
stat_inc_inline_inode(inode);
stat_inc_inline_dir(inode);
return err;
}
@ -199,8 +203,6 @@ make_now:
goto bad_inode;
}
unlock_new_inode(inode);
stat_inc_inline_inode(inode);
stat_inc_inline_dir(inode);
trace_f2fs_iget(inode);
return inode;