summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2014-04-30 08:04:39 +0200
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2014-05-07 03:21:58 +0200
commit8198899b94b74bb16c0b240483fd81269b199d2e (patch)
tree12d23113ac9b51d545f8e98a4d381b19bd429e4c /fs/f2fs
parentf2fs: decrease the lock granularity during write_begin (diff)
downloadlinux-8198899b94b74bb16c0b240483fd81269b199d2e.tar.xz
linux-8198899b94b74bb16c0b240483fd81269b199d2e.zip
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 <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c
index f7a655373c46..adc622c6bdce 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);
}