[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251219145957.GD254720@nvidia.com>
Date: Fri, 19 Dec 2025 10:59:57 -0400
From: Jason Gunthorpe <jgg@...dia.com>
To: Peter Xu <peterx@...hat.com>
Cc: kvm@...r.kernel.org, linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Nico Pache <npache@...hat.com>, Zi Yan <ziy@...dia.com>,
Alex Mastro <amastro@...com>, David Hildenbrand <david@...hat.com>,
Alex Williamson <alex@...zbot.org>, Zhi Wang <zhiw@...dia.com>,
David Laight <david.laight.linux@...il.com>,
Yi Liu <yi.l.liu@...el.com>, Ankit Agrawal <ankita@...dia.com>,
Kevin Tian <kevin.tian@...el.com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH v2 2/4] mm: Add file_operations.get_mapping_order()
On Tue, Dec 16, 2025 at 02:44:29PM -0500, Peter Xu wrote:
> > > Or maybe I misunderstood what you're suggesting to document? If so, please
> > > let me know; some example would be greatly helpful.
> >
> > Just document the 'VA % order = pgoff % order' equation in the kdoc
> > for the new op.
>
> When it's "related to PTEs", it's talking about (2) above, so that's really
> what I want to avoid mentioning.
You can't avoid it. Drivers must ensure that
pgoff % order == physical % order
And that is something only drivers can do by knowing about this
requirement.
Jason
Powered by blists - more mailing lists