diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-04-30 08:04:39 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-05-07 03:21:58 +0200 |
commit | 8198899b94b74bb16c0b240483fd81269b199d2e (patch) | |
tree | 12d23113ac9b51d545f8e98a4d381b19bd429e4c /fs/f2fs/inode.c | |
parent | f2fs: decrease the lock granularity during write_begin (diff) | |
download | linux-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/inode.c')
-rw-r--r-- | fs/f2fs/inode.c | 1 |
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); } |