Skip to contentSkip to conversation

f2fs: fix inline data/dentry stat number leak

PATCH New Chao Yu 1 participant 1 message Jul 24, 2015 F2FS file system

lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 1/3 f2fs: fix inline data/dentry stat number leak

If we clear inline data/dentry flag in handle_failed_inode, we will fail to decline the stat count of inline data/dentry in f2fs_evict_inode due to no flag in inode. So remove the wrong clearing.

---
 fs/f2fs/inode.c | 2 --
 1 file changed, 2 deletions(-)
fs/f2fs/inode.c +0 -2
index cc4f108..8335443 100644
@@ -390,8 +390,6 @@ void handle_failed_inode(struct inode *inode)
 	remove_inode_page(inode);
 
 	set_inode_flag(F2FS_I(inode), FI_FREE_NID);
-	clear_inode_flag(F2FS_I(inode), FI_INLINE_DATA);
-	clear_inode_flag(F2FS_I(inode), FI_INLINE_DENTRY);
 	f2fs_unlock_op(sbi);
 
 	/* iput will drop the inode object */
Signature · 1 line
2.4.2