summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorWanpeng Li <wanpeng.li@linux.intel.com>2015-03-06 08:00:54 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2015-04-11 00:08:35 +0200
commitfdf6c8be337af72b066548f325abcbcdf626dea8 (patch)
tree3877da09dc0618de1f5c53ee502bade865706dec /fs/f2fs
parentf2fs: relocate Kconfig from misc filesystems (diff)
downloadlinux-fdf6c8be337af72b066548f325abcbcdf626dea8.tar.xz
linux-fdf6c8be337af72b066548f325abcbcdf626dea8.zip
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();