From 8198899b94b74bb16c0b240483fd81269b199d2e Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Wed, 30 Apr 2014 15:04:39 +0900 Subject: f2fs: deactivate inode page if the inode is evicted If the inode page is clean during its inode eviction, it'd better drop the page to reduce further memory pressure. Signed-off-by: Jaegeuk Kim --- fs/f2fs/inode.c | 1 + 1 file changed, 1 insertion(+) (limited to 'fs/f2fs/inode.c') diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index f7a6553..adc622c 100644 --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c @@ -295,4 +295,5 @@ void f2fs_evict_inode(struct inode *inode) sb_end_intwrite(inode->i_sb); no_delete: clear_inode(inode); + invalidate_mapping_pages(NODE_MAPPING(sbi), inode->i_ino, inode->i_ino); } -- cgit v1.1