summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/shrinker.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-06-20 02:53:26 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2015-08-04 23:09:56 +0200
commit3e72f721390dc14e7b33fda812843c0725810106 (patch)
tree0d0b84a3dc6ee8cfe3ef18a5a0f16f94b3c3ae75 /fs/f2fs/shrinker.c
parentf2fs: add noextent_cache mount option (diff)
downloadlinux-3e72f721390dc14e7b33fda812843c0725810106.tar.xz
linux-3e72f721390dc14e7b33fda812843c0725810106.zip
f2fs: use extent_cache by default
We don't need to handle the duplicate extent information. The integrated rule is: - update on-disk extent with largest one tracked by in-memory extent_cache - destroy extent_tree for the truncation case - drop per-inode extent_cache by shrinker Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/shrinker.c')
-rw-r--r--fs/f2fs/shrinker.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/shrinker.c b/fs/f2fs/shrinker.c
index 1f0a131be3d2..9aa4235cd304 100644
--- a/fs/f2fs/shrinker.c
+++ b/fs/f2fs/shrinker.c
@@ -117,6 +117,8 @@ void f2fs_join_shrinker(struct f2fs_sb_info *sbi)
void f2fs_leave_shrinker(struct f2fs_sb_info *sbi)
{
+ f2fs_shrink_extent_tree(sbi, __count_extent_cache(sbi));
+
spin_lock(&f2fs_list_lock);
list_del(&sbi->s_list);
spin_unlock(&f2fs_list_lock);