From: Miaohe Lin Date: Thu, 1 Jul 2021 01:52:49 +0000 (-0700) Subject: mm/zswap.c: remove unused function zswap_debugfs_exit() X-Git-Tag: accepted/tizen/unified/20230118.172025~6930^2~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c1e9a2c668b4606e9c27fe420ddf83d113928c8;p=platform%2Fkernel%2Flinux-rpi.git mm/zswap.c: remove unused function zswap_debugfs_exit() Patch series "Cleanup and fixup for zswap". This series contains cleanups to remove unused function and avoid unnecessary copy-in at map time. Also this fixes two bugs in the function zswap_writeback_entry(). More details can be found in the respective changelogs. This patch (of 3): zswap_debugfs_exit() is unused, remove it. Link: https://lkml.kernel.org/r/20210522092242.3233191-1-linmiaohe@huawei.com Link: https://lkml.kernel.org/r/20210522092242.3233191-2-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Cc: Seth Jennings Cc: Dan Streetman Cc: Vitaly Wool Cc: Sebastian Andrzej Siewior Cc: Nathan Chancellor Cc: Colin Ian King Cc: Tian Tao Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/zswap.c b/mm/zswap.c index 2076326..e934593 100644 --- a/mm/zswap.c +++ b/mm/zswap.c @@ -1427,18 +1427,11 @@ static int __init zswap_debugfs_init(void) return 0; } - -static void __exit zswap_debugfs_exit(void) -{ - debugfs_remove_recursive(zswap_debugfs_root); -} #else static int __init zswap_debugfs_init(void) { return 0; } - -static void __exit zswap_debugfs_exit(void) { } #endif /*********************************