forked from luck/tmp_suning_uos_patched
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:
parent
9be32d72be
commit
9d1015dd4c
|
@ -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 @@ struct inode *f2fs_iget(struct super_block *sb, unsigned long ino)
|
|||
goto bad_inode;
|
||||
}
|
||||
unlock_new_inode(inode);
|
||||
stat_inc_inline_inode(inode);
|
||||
stat_inc_inline_dir(inode);
|
||||
trace_f2fs_iget(inode);
|
||||
return inode;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user