From patchwork Thu Jul 1 01:52:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12353267 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_RED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51C67C11F69 for ; Thu, 1 Jul 2021 01:52:52 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 08CE061476 for ; Thu, 1 Jul 2021 01:52:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 08CE061476 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 887CC8D023C; Wed, 30 Jun 2021 21:52:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 85E518D0236; Wed, 30 Jun 2021 21:52:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6FFA68D023C; Wed, 30 Jun 2021 21:52:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0004.hostedemail.com [216.40.44.4]) by kanga.kvack.org (Postfix) with ESMTP id 4DBE78D0236 for ; Wed, 30 Jun 2021 21:52:51 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 1F74C181AEF3F for ; Thu, 1 Jul 2021 01:52:51 +0000 (UTC) X-FDA: 78312345342.27.C519453 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf20.hostedemail.com (Postfix) with ESMTP id D38E1D0000A0 for ; Thu, 1 Jul 2021 01:52:50 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id B182561477; Thu, 1 Jul 2021 01:52:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1625104370; bh=CuZGpym98MNTmM4CbOTAGVfaql3a/d9kPHOZYP3C3o0=; h=Date:From:To:Subject:In-Reply-To:From; b=OP6tSmkg3KzDXFLeBuYqCOAlb5j7JrFBPc/y/swjsr+eBb+iOPT3EfW/iIK4GCqpP H0ni+D/jqwHfVr0Ma9bhHJYtIT2m8jnERP3L5o5IZ42nG2GCeq6wFw/loTAxKx8+dm yYsQH0r4vW+gBW5FE2PmvxDkKM6U45A74Im8emuQ= Date: Wed, 30 Jun 2021 18:52:49 -0700 From: Andrew Morton To: akpm@linux-foundation.org, bigeasy@linutronix.de, colin.king@canonical.com, ddstreet@ieee.org, linmiaohe@huawei.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, nathan@kernel.org, sjenning@redhat.com, tiantao6@hisilicon.com, torvalds@linux-foundation.org, vitaly.wool@konsulko.com Subject: [patch 105/192] mm/zswap.c: remove unused function zswap_debugfs_exit() Message-ID: <20210701015249.mnF3Kg_Tt%akpm@linux-foundation.org> In-Reply-To: <20210630184624.9ca1937310b0dd5ce66b30e7@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: D38E1D0000A0 Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=OP6tSmkg; spf=pass (imf20.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Stat-Signature: 5qp8odjxynpeorzbmwj46cy7qjgz95zq X-HE-Tag: 1625104370-584474 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Miaohe Lin Subject: 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 --- mm/zswap.c | 7 ------- 1 file changed, 7 deletions(-) --- a/mm/zswap.c~mm-zswapc-remove-unused-function-zswap_debugfs_exit +++ a/mm/zswap.c @@ -1427,18 +1427,11 @@ static int __init zswap_debugfs_init(voi 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 /*********************************