[PATCH v2 01/34] mm: Add PAGE_TYPE_OP folio functions

Vishal Moola vishal.moola at gmail.com
Thu May 25 10:00:23 PDT 2023


On Thu, May 25, 2023 at 1:56 AM Mike Rapoport <rppt at kernel.org> wrote:
>
> Hi,
>
> On Mon, May 01, 2023 at 12:27:56PM -0700, Vishal Moola (Oracle) wrote:
> > No folio equivalents for page type operations have been defined, so
> > define them for later folio conversions.
>
> Can you please elaborate why would we need folios for page table descriptors?

Thanks for the review!

These macros are for callers that care about the page type, i.e. Table and
Buddy. Aside from accounting for those cases, the page tables don't use folios.
These are more for the cleanliness of those callers.



More information about the linux-riscv mailing list