Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wanpeng Li and committed by
Jaegeuk Kim
fdf6c8be d7196c5a

+1
+1
fs/f2fs/super.c
··· 1323 1323 remove_proc_entry("fs/f2fs", NULL); 1324 1324 f2fs_destroy_root_stats(); 1325 1325 unregister_filesystem(&f2fs_fs_type); 1326 + destroy_extent_cache(); 1326 1327 destroy_checkpoint_caches(); 1327 1328 destroy_segment_manager_caches(); 1328 1329 destroy_node_manager_caches();