Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp493930rwb; Mon, 26 Sep 2022 23:45:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4YVBmLV7dgl3AXhLk9RTPjzFkUTOzZdGm3nPAIxk2TPhyxKYF7mVfjfk5wNwr/dUstSXI6 X-Received: by 2002:a17:907:97d5:b0:782:23b0:ecb8 with SMTP id js21-20020a17090797d500b0078223b0ecb8mr22349488ejc.100.1664261131962; Mon, 26 Sep 2022 23:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664261131; cv=none; d=google.com; s=arc-20160816; b=UNWS/c6DW8dX7gm2JGtZTUTorfzP4Mbok35XCMkPUBy8yTOZlgchGfRFeJrqgsHZm1 QBOl8yLy8tjKLQZfe85JWuQJFWzVN7cxUM9gzNfbzeVoFohtNXBrpI2NKRFsz/qdjFSV rTisEa2dj63FT7AFUycyUPudsew5GaWteD8aFFUqb7c8e/8xwDke9bi5v9s/4sf+se23 BPORWdoafUu95BELOYpdZB7XuOnrI6htG7p8ltCSuGx3bxyJGkSKjScqxUy6vr/8ummc cAYlIvnl50aDTMOGBhqSVAhoVIoBxRrq5OK/+uZOO1iYXiTtywtza9Ym2x5/2fnBIR1F 4/Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=CpJQ2TIIdXmtD1GNto49w9aHNq5550/C2VzrT1eTYns=; b=LBXEB/t1YPMueNQzmhmCI+9Mxm1GTFXBdHtXVGyn0gdh03WFALpoSPiefDLZWp5y5t PI+5mI8jEefy2fG7z92DSU+6e0ZSPpUFnUs0+9/ibHYuPNSIk1F9bltm6/ik3w+LL3pE jdwtJYiR9I1olhl7C/6HkikLeGrD0bOj1Cvg7XItRl3cU1uF3XpfsEUPpaY8dZGbhqUp +ZNA5Nclg+rlk4j427fg3BKPfhzBQPy+afCFZr/SDTKjSnINT7xL7rSbJYQM9T0hqbcn 0ofS86r4Rksv6Du16QHeuZ1H11JDQgx54WeBq+I/lE8HRnoXQ0xGPyStXYafrlYNAcTI G9Og== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j26-20020a508a9a000000b00456f40c9be0si715148edj.254.2022.09.26.23.45.03; Mon, 26 Sep 2022 23:45:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229844AbiI0GfL (ORCPT + 99 others); Tue, 27 Sep 2022 02:35:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbiI0GfK (ORCPT ); Tue, 27 Sep 2022 02:35:10 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFBB44621F for ; Mon, 26 Sep 2022 23:35:07 -0700 (PDT) Received: from dggpemm500023.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Mc8v60z5FzHqJj; Tue, 27 Sep 2022 14:32:50 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500023.china.huawei.com (7.185.36.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 27 Sep 2022 14:35:05 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 27 Sep 2022 14:35:05 +0800 From: Kefeng Wang To: Andrew Morton , CC: Matthew Wilcox , , Kefeng Wang Subject: [PATCH] mm: rmap: rename page_not_mapped() to folio_not_mapped() Date: Tue, 27 Sep 2022 14:38:26 +0800 Message-ID: <20220927063826.159590-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit 2f031c6f042c ("mm/rmap: Convert rmap_walk() to take a folio"), page_not_mapped() takes folio as parameter, rename it to be consistent. Signed-off-by: Kefeng Wang --- mm/rmap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/rmap.c b/mm/rmap.c index 2ec925e5fa6a..df228602cf0e 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -1801,7 +1801,7 @@ static bool invalid_migration_vma(struct vm_area_struct *vma, void *arg) return vma_is_temporary_stack(vma); } -static int page_not_mapped(struct folio *folio) +static int folio_not_mapped(struct folio *folio) { return !folio_mapped(folio); } @@ -1822,7 +1822,7 @@ void try_to_unmap(struct folio *folio, enum ttu_flags flags) struct rmap_walk_control rwc = { .rmap_one = try_to_unmap_one, .arg = (void *)flags, - .done = page_not_mapped, + .done = folio_not_mapped, .anon_lock = folio_lock_anon_vma_read, }; @@ -2150,7 +2150,7 @@ void try_to_migrate(struct folio *folio, enum ttu_flags flags) struct rmap_walk_control rwc = { .rmap_one = try_to_migrate_one, .arg = (void *)flags, - .done = page_not_mapped, + .done = folio_not_mapped, .anon_lock = folio_lock_anon_vma_read, }; @@ -2297,7 +2297,7 @@ static bool folio_make_device_exclusive(struct folio *folio, }; struct rmap_walk_control rwc = { .rmap_one = page_make_device_exclusive_one, - .done = page_not_mapped, + .done = folio_not_mapped, .anon_lock = folio_lock_anon_vma_read, .arg = &args, }; -- 2.35.3