summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorWanpeng Li <wanpeng.li@linux.intel.com>2015-03-06 15:00:54 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-04-10 15:08:35 -0700
commitfdf6c8be337af72b066548f325abcbcdf626dea8 (patch)
tree3877da09dc0618de1f5c53ee502bade865706dec /fs/f2fs
parentd7196c5a32caf6ebbe60771ff04ee7d797039d74 (diff)
downloadlinux-fdf6c8be337af72b066548f325abcbcdf626dea8.tar.bz2
f2fs: fix extent cache memory leak
extent tree/node slab cache is created during f2fs insmod, how, it isn't destroyed during f2fs rmmod, this patch fix it by destroy extent tree/node slab cache once rmmod f2fs. Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com> Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index e649f21121d2..0b8a2d8efa72 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1323,6 +1323,7 @@ static void __exit exit_f2fs_fs(void)
remove_proc_entry("fs/f2fs", NULL);
f2fs_destroy_root_stats();
unregister_filesystem(&f2fs_fs_type);
+ destroy_extent_cache();
destroy_checkpoint_caches();
destroy_segment_manager_caches();
destroy_node_manager_caches();