From patchwork Tue Mar 8 13:43:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12773834 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D637EC433EF for ; Tue, 8 Mar 2022 13:44:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 76A0F8D0003; Tue, 8 Mar 2022 08:44:06 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7190D8D0001; Tue, 8 Mar 2022 08:44:06 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 62FCD8D0003; Tue, 8 Mar 2022 08:44:06 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0131.hostedemail.com [216.40.44.131]) by kanga.kvack.org (Postfix) with ESMTP id 53E588D0001 for ; Tue, 8 Mar 2022 08:44:06 -0500 (EST) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 028D4182B5287 for ; Tue, 8 Mar 2022 13:44:06 +0000 (UTC) X-FDA: 79221337692.27.5F43606 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf27.hostedemail.com (Postfix) with ESMTP id 609164000C for ; Tue, 8 Mar 2022 13:44:05 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KCc2m742gzdfrf; Tue, 8 Mar 2022 21:42:40 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 8 Mar 2022 21:44:02 +0800 From: Miaohe Lin To: , CC: , , Subject: [PATCH v2 0/8] A few cleanup patches for z3fold Date: Tue, 8 Mar 2022 21:43:03 +0800 Message-ID: <20220308134311.59086-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 609164000C X-Stat-Signature: 48b88rxghocpcnxzp8zhqi6rtueo3zp1 Authentication-Results: imf27.hostedemail.com; dkim=none; spf=pass (imf27.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspam-User: X-HE-Tag: 1646747045-16731 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: Hi, This series contains a few patches to simplify the code, remove unneeded code, fix obsolete comment and so on. More details can be found in the respective changelogs. Thanks! --- v1->v2: collect Reviewed-by tag. Thanks Vitaly, Souptick and David for review drop mm/z3fold: remove unneeded return value of z3fold_compact_page() split the enhance of reducing atomic_ops overhead into separate patch --- Miaohe Lin (8): mm/z3fold: declare z3fold_mount with __init mm/z3fold: remove obsolete comment in z3fold_alloc mm/z3fold: minor clean up for z3fold_free mm/z3fold: remove unneeded page_mapcount_reset and ClearPagePrivate mm/z3fold: remove confusing local variable l reassignment mm/z3fold: move decrement of pool->pages_nr into __release_z3fold_page() mm/z3fold: remove redundant list_del_init of zhdr->buddy in z3fold_free mm/z3fold: remove unneeded PAGE_HEADLESS check in free_handle() mm/z3fold.c | 64 ++++++++++++++--------------------------------------- 1 file changed, 17 insertions(+), 47 deletions(-)