summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2014-04-30 15:04:39 +0900
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2014-05-07 10:21:58 +0900
commit8198899b94b74bb16c0b240483fd81269b199d2e (patch)
tree12d23113ac9b51d545f8e98a4d381b19bd429e4c /fs/f2fs
parentd5f66990bb928e7490ba4da94d585f618adcee5e (diff)
downloadop-kernel-dev-8198899b94b74bb16c0b240483fd81269b199d2e.zip
op-kernel-dev-8198899b94b74bb16c0b240483fd81269b199d2e.tar.gz
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 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);
}
OpenPOWER on IntegriCloud