Re: [PATCH v2 01/33] mm: add virt_to_folio() and folio_address()
From: Vlastimil Babka <hidden>
Date: 2021-12-14 14:28:20
Also in:
linux-patches
From: Vlastimil Babka <hidden>
Date: 2021-12-14 14:28:20
Also in:
linux-patches
On 12/14/21 15:20, Johannes Weiner wrote:
On Wed, Dec 01, 2021 at 07:14:38PM +0100, Vlastimil Babka wrote:quoted
These two wrappers around their respective struct page variants will be useful in the following patches. Signed-off-by: Vlastimil Babka <redacted>Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Thanks!
Slight reviewer preference: introduce helpers when they're first used, as it's a little easier to understand the application without having to chase new folio_address() -> new slab_address() -> first user of slab_address() through the patchset.
Yeah would normally do that but with the current folio work going on there was a chance the helpers would be useful to somebody else too and cherry-picking a patch that adds them without user is simpler. And indeed Matthew just asked about virt_to_folio() few days ago :)