Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2550649rdb; Fri, 22 Sep 2023 01:44:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6eb7O5ILiYiGV6ulL54dueM1k1N546OrwJU2GheKlrSM9KV7Qcn/goiqYGXnI9J1CFGRb X-Received: by 2002:a17:90a:4944:b0:274:589f:ba35 with SMTP id c62-20020a17090a494400b00274589fba35mr7971720pjh.8.1695372253098; Fri, 22 Sep 2023 01:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695372253; cv=none; d=google.com; s=arc-20160816; b=LomA04GfujRk2MFFa/6F0CfaY/GMzcsL6XIlweKN/UJJtZYcky13snuRdmm40izMzh +1UANkvrxQ9u9isQiv37AVdsdXvaJCK6jPtkAE34tE0H4vFgZySV9Pc3ldNoIofuzf59 5XZW/K5n3rv7Pid4c0f9fAwfY0XBC5cqa4PM9uJjypXrxJmjKVBoH6BjdQQOFf+hKOLJ XuYcAan0nOWn8euSs5Z8NOl/52/XEdjcgWyDzRnsU/1GHdgXY9rdLJ7RloAy09ZApW23 ltpzX+5u9+olMcFDWQ9Q5l8EiABQlexyxaMp0uVFLLTMt9Ny/L+zvjKJ6RZWGlCG32Bs oZiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fTffBsX5ZQ8vPtCXH0LV4fT/b+RfyYh64dbzhekWoNI=; fh=k/DOZvEgUpzNOcUGWcJMyUsq3H18VxYoVq9AtPq/VLY=; b=VWRFCAmUA4QZAqPwykC5PtLg1pMIBhUVnQ+FqhzxMYLmKaXd4IAPpjElgCPmcurOum dN4oS2Mp4M/n61k362uppzj0bRKeP86b5UySL8rkcFHkp3yLC8gOsATG1DxKxahMxFH8 pjgjDqBJ/eKDNz9Sw87Gng4g5uAJ2q4gMbK63cJbS25tC5MQmw5lNgDjW2xm20Y6LNuS rZ8FN5XaTP2jdXRlUXM5dJeN/30Fpn/s/pxzL+0W/3gSxnhSXQSVvAiDP+KWYsYRh45C EwDQoNSJ5/j95aRmekWqm+mdBm5a9eiQrfiCV0FHXUCQwJiSJksVZajYksMC1geWcusC A2dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=mshh8jDM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id nn9-20020a17090b38c900b00276be05a452si6030329pjb.11.2023.09.22.01.44.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 01:44:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=mshh8jDM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 93E4980990CD; Fri, 22 Sep 2023 00:27:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231262AbjIVH1j (ORCPT + 99 others); Fri, 22 Sep 2023 03:27:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231254AbjIVH1g (ORCPT ); Fri, 22 Sep 2023 03:27:36 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0283192; Fri, 22 Sep 2023 00:27:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=fTffBsX5ZQ8vPtCXH0LV4fT/b+RfyYh64dbzhekWoNI=; b=mshh8jDMfgVNGvBmiFE6AIEqGr 4vbNkAMCy52Tor4002Rv+fFwYNRp6Q17WNzhpkCJv82PADIydl+YLCs0JkH9oJM7bBWbXGKyj01Ct 9NXn8tywK6JBQlGclnH7teUEAO36gdE2M5f7/heRL12x3OOGj2TbJLYalVTmZvUJzL2SBHSjpA7/b M5S/mWBZLIjs0fvnqEMRWrUDr/gXANRBWdP+3JfDQhoH8bXM6RggDiPk1xK+jH+Jf1si6dX8ybKTQ KVUfSXQsmikclPXIixb41wVocMwTkk06XC8qe3URN59KVOrfIXNYJnyrLEEQLGbhjGM5PA/bJbxth yt5INcUA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qjaZO-00Gv6p-QT; Fri, 22 Sep 2023 07:27:22 +0000 Date: Fri, 22 Sep 2023 08:27:22 +0100 From: Matthew Wilcox To: Minjie Du Cc: Andrew Morton , "open list:PAGE CACHE" , "open list:MEMORY MANAGEMENT" , open list , opensource.kernel@vivo.com Subject: Re: [PATCH v1] mm/filemap: increase usage of folio_next_index() helper Message-ID: References: <20230921081535.3398-1-duminjie@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230921081535.3398-1-duminjie@vivo.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 22 Sep 2023 00:27:41 -0700 (PDT) On Thu, Sep 21, 2023 at 04:15:35PM +0800, Minjie Du wrote: > Simplify code pattern of 'folio->index + folio_nr_pages(folio)' by using > the existing helper folio_next_index() in filemap_map_pages(). > > Signed-off-by: Minjie Du Reviewed-by: Matthew Wilcox (Oracle)