Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp681352rwb; Wed, 28 Sep 2022 07:51:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4XpuifZ91+eKxK6TYXSj+NYWPac71Nxrui4FA65bb/Cjz22CsY70MyrqYUnx5Ly8b5HSYs X-Received: by 2002:a17:907:9812:b0:781:bbff:1d20 with SMTP id ji18-20020a170907981200b00781bbff1d20mr28165493ejc.33.1664376711505; Wed, 28 Sep 2022 07:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664376711; cv=none; d=google.com; s=arc-20160816; b=m7+ngR7SSSHX+nlWEBwPwuTCMBznI4Lf/ji8eEJIYVrZcHMgz9WyqFFHeRJ1bJZn8U 3b8Y8Cc4Rer6k+S+XshlxY9fc0sHEXRMQFgKmaE41sdR943CZhI0SN8F9wSDUloqaq3Z 0sgEGDNmlzvlDWzwbwzqZeaZwvUZ+Hd5nEd5ziefbwKVcVaFb4pPSUCHv/OhZCAhWGWp 0BfXJIkhxOzNZp97Sz+TZ8/Fb6bA7Pjt9zWyBsaI9U5Helf4JmrIwrClCQ/YiV2SZ7MV bqmcAB4eTd0b5PGI1Y2N6iRxUnzKcX2nOXoaP/hkai/WgZstJZuDS2/jbaDa4HyU93sl j1lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=CsRvdNuB3v/SNcrkexdVjS7ITSiCQeyOBq5LFv9LGBc=; b=VZvfM5GZR/Jo9NRG4phrqSU2V1/LsxP9Ug/hbZjWdzqhdRRKOzOUrE1G1ELw0o3qpZ tppVGVnj/8CxXFkeBneuxVL0pywxL49JMUEUOQ0Bt5Patn9jBtpv8+CN9AUqpd1LohwD nC5O1OK/67rsJvp+GCRIQ5MdlOEJI3iug1o29yf6cpL3ze0DPQPOUw47LT9JLLX9i/u+ SjexSSXt+DAK5xuer7dIf75DQ+5HXyIq7aX2BfosJa/8h8XWnkW3Vz0fShP0k2RtosOt 135gaINiEdHD+1p4ZPbqkQJZdu3U5n0N2Gqr6Zev5H8PnWAHBwTspGbAmdcwAOAFqr/u mzrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YS8c5V9s; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020a056402441200b00456e1b5b8e1si6802239eda.426.2022.09.28.07.51.24; Wed, 28 Sep 2022 07:51:51 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YS8c5V9s; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234298AbiI1O1s (ORCPT + 99 others); Wed, 28 Sep 2022 10:27:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234222AbiI1O1n (ORCPT ); Wed, 28 Sep 2022 10:27:43 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7507AB04C for ; Wed, 28 Sep 2022 07:27:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664375261; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CsRvdNuB3v/SNcrkexdVjS7ITSiCQeyOBq5LFv9LGBc=; b=YS8c5V9s0tEcnnB7ZiaUucx0K8X5d1x5GsV/aFdlu27m2CqF63dgW5RYtaQXtVtJG64RrH H9dJsM2nPiulwvtjaVj6aCZRsqfSEX8NnIApscGBXGK/UuqdzSA5idGywYCupZ+xrwtbse 9OEfN5vTu1HxTvtK3kuSsl0D4yHNTz8= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-610-EWmFq-9kMY6gJfNsctQoyg-1; Wed, 28 Sep 2022 10:27:40 -0400 X-MC-Unique: EWmFq-9kMY6gJfNsctQoyg-1 Received: by mail-wm1-f69.google.com with SMTP id i132-20020a1c3b8a000000b003b339a8556eso7175711wma.4 for ; Wed, 28 Sep 2022 07:27:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date; bh=CsRvdNuB3v/SNcrkexdVjS7ITSiCQeyOBq5LFv9LGBc=; b=dh71fd3AvbZBoJndAmvaC8dLEOtYwqo0+PVP2h+rDiQK05TUXha7e8QkZ5goHT74Vo qAJFN8kXhWFpPvzVTGtU4sbWce7/MFu+1/025hzv7rixxRbWX+WHPvOKHH/Y0nwtio2z De2g0uj4MQMwudqq27Llux6ZsfYah7tsjuz7PVlD6le0M6YhZ/fRvyjNRzrUgLxiSrUa xQWwWqwKthk1VhWWOpTGZCuUbOSIQceRDxPdByUJ25aeC0WGGIpkDJCt/nl/AepmjV35 i13FzVju3i+jT21a60fQO0AtGyUvU/5FdeJUiM4o0717CQyk/3caT0O0/ddvxO4I8Ajm qKgQ== X-Gm-Message-State: ACrzQf2FnWlQDwulrJuVrtoAj0ohbWRonD5bTLfTYqZKunsdLsVQ0QTY Xi7N9rx6M6+R3etyphWUQU3HtbIxOi6LVKr7OF9SAHLzd8X81qX5/+LA+ujGPx6V4srzXW/ELKR nEXDogX6ardzaO3AjYNuKXwjt X-Received: by 2002:a05:600c:198a:b0:3b4:c06a:28b1 with SMTP id t10-20020a05600c198a00b003b4c06a28b1mr7253789wmq.72.1664375258855; Wed, 28 Sep 2022 07:27:38 -0700 (PDT) X-Received: by 2002:a05:600c:198a:b0:3b4:c06a:28b1 with SMTP id t10-20020a05600c198a00b003b4c06a28b1mr7253764wmq.72.1664375258586; Wed, 28 Sep 2022 07:27:38 -0700 (PDT) Received: from ?IPV6:2003:cb:c704:1100:add9:5f61:6b94:7540? (p200300cbc7041100add95f616b947540.dip0.t-ipconnect.de. [2003:cb:c704:1100:add9:5f61:6b94:7540]) by smtp.gmail.com with ESMTPSA id b8-20020a5d45c8000000b0022ca921dc67sm4288199wrs.88.2022.09.28.07.27.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Sep 2022 07:27:38 -0700 (PDT) Message-ID: Date: Wed, 28 Sep 2022 16:27:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH] mm: rmap: rename page_not_mapped() to folio_not_mapped() Content-Language: en-US To: Kefeng Wang , Andrew Morton , linux-mm@kvack.org Cc: Matthew Wilcox , linux-kernel@vger.kernel.org References: <20220927063826.159590-1-wangkefeng.wang@huawei.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20220927063826.159590-1-wangkefeng.wang@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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 On 27.09.22 08:38, Kefeng Wang wrote: > 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, > }; I'm wondering if we should call it "folio_unmapped()". Anyhow Reviewed-by: David Hildenbrand -- Thanks, David / dhildenb