From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE46BCD4F2E for ; Fri, 22 Sep 2023 07:27:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231255AbjIVH1i (ORCPT ); Fri, 22 Sep 2023 03:27:38 -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> Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org 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)