aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorWanpeng Li <wanpeng.li@linux.intel.com>2015-03-06 02:00:54 -0500
committerJaegeuk Kim <jaegeuk@kernel.org>2015-04-10 18:08:35 -0400
commitfdf6c8be337af72b066548f325abcbcdf626dea8 (patch)
tree3877da09dc0618de1f5c53ee502bade865706dec /fs/f2fs
parentd7196c5a32caf6ebbe60771ff04ee7d797039d74 (diff)
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)
1323 remove_proc_entry("fs/f2fs", NULL); 1323 remove_proc_entry("fs/f2fs", NULL);
1324 f2fs_destroy_root_stats(); 1324 f2fs_destroy_root_stats();
1325 unregister_filesystem(&f2fs_fs_type); 1325 unregister_filesystem(&f2fs_fs_type);
1326 destroy_extent_cache();
1326 destroy_checkpoint_caches(); 1327 destroy_checkpoint_caches();
1327 destroy_segment_manager_caches(); 1328 destroy_segment_manager_caches();
1328 destroy_node_manager_caches(); 1329 destroy_node_manager_caches();