Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4760671pxv; Tue, 20 Jul 2021 10:58:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPL8cv7LMNf4m0uIDnlnorqhpDP6B63n13I0GtLuxvwBNYZgWt3fYgRqEFyars7+nOg7sx X-Received: by 2002:a92:cf48:: with SMTP id c8mr12619129ilr.237.1626803902468; Tue, 20 Jul 2021 10:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626803902; cv=none; d=google.com; s=arc-20160816; b=k/6IML3K3IXFcCadqu5ld9oAmy00ybtRg45m4uWJeqH/awjGyeK8i8DkeXRPtwJdFc eqPdseu1TMmZwjDRv8WbhBBOl/bG4o/+pd12P1bv2PsKZlVAoGFJXB/O117MtLgx7vcY 8jAeqWZ8qaqtq6cPmHWojJ4r3AT+wLD4IB1Nv4S8si9AxW4UJHHVf4HizqTnbE49D7HP 1v59ah89bM/PfCunME4McTxXT/5qblT/Y4Q/UWJlwq150DHq5atlZ9wIq4Onm+gO9BAF nnqk50ifNQkZwspNZ+6Z7Wymobnu2I9GsKm3cCs3BW24LNBIRnv+eV2xXXRnw8T0CAXP ffsw== 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=oDAJ42dv5UM7XR2QM94ynNYpWgzAJSt3LgUls9TMDrA=; b=FFu6P2+EBVu+2uuDomf4rDWWigQyPY9kRnzKdD4+MD4Z8tN9+gtyUDC8oSekDhX9ZP R2mt+Avul/wbMYBfiiMcuI9HWtzp2FZYXgpAxpq1JMsTOYcK37rq/EXuXL/l818KIcqx MHfdK7Y2KIVp5FcAkPdAsKfmzPJewfNXT1b9Iy8I6IVyTc3ZvfnGiDWR2zRNKcrYnSo1 Dn0BzZtltjqBVbLk2vp2Fq15BF6J1RUTre1iGAIKF/+TZdzDspOyd3/ITNO4fBDQJ1SY 4Ae+eT4gUZN7mGX1n8/NuN/+AO1miCxzstAPfn6/UchSsJu9MN7pica82YvySr6Dho5/ UL/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=iI3D7zk0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a16si22957423ilb.149.2021.07.20.10.58.08; Tue, 20 Jul 2021 10:58:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=iI3D7zk0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232512AbhGTRPq (ORCPT + 99 others); Tue, 20 Jul 2021 13:15:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232159AbhGTRPN (ORCPT ); Tue, 20 Jul 2021 13:15:13 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74DBAC061574; Tue, 20 Jul 2021 10:55:51 -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=oDAJ42dv5UM7XR2QM94ynNYpWgzAJSt3LgUls9TMDrA=; b=iI3D7zk0Eux8BZ3+/5gXEBCIkU V7ksq2N37ISwvTSZKYLGaQKxw4tVV1OfJ0mQ2pr88p2jBqzQoovqGyH+UaJGpH3PeMpuoc4thidA+ 2hQX3PjKZBfcT9hGj5YsnVjFlBRk0njEXAXTRZVZmiqwbvcUgnQLg4fEcz0HDsRtsfgxGYh00OF67 R2a3e4Uu9husSNqcuY1qYLWMQOqYfohQtodkDq9js4MCWvx5hbLvDVmxPhcPkgDXJTj9JmtM3qNYh EIMRIxMepEYobhn9xutI0g4wN9naS/UA1wyHe62gx3U43WMKZ3G9IAj+xF5z03QFg3RoR48GUpkFy JVFVl1Uw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m5txY-008NQ7-FL; Tue, 20 Jul 2021 17:55:17 +0000 Date: Tue, 20 Jul 2021 18:55:12 +0100 From: Matthew Wilcox To: Mike Rapoport Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , Jeff Layton , "Kirill A . Shutemov" , Vlastimil Babka , William Kucharski , David Howells Subject: Re: [PATCH v14 014/138] mm/filemap: Add folio_next_index() Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-15-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 20, 2021 at 01:42:11PM +0300, Mike Rapoport wrote: > > diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h > > index f7c165b5991f..bd0e7e91bfd4 100644 > > --- a/include/linux/pagemap.h > > +++ b/include/linux/pagemap.h > > @@ -406,6 +406,17 @@ static inline pgoff_t folio_index(struct folio *folio) > > return folio->index; > > } > > > > +/** > > + * folio_next_index - Get the index of the next folio. > > + * @folio: The current folio. > > + * > > + * Return: The index of the folio which follows this folio in the file. > > + */ > > Maybe note that index is in units of pages? I don't think this is the place to explain that. Remember, we already have: * @index: Offset within the file, in units of pages. For anonymous pages, * this is the index from the beginning of the mmap. and I don't want to explain every term of art in every function description. I think if you're reading this, you can follow the link to the struct folio description and see what an index is.