[PATCH RFC v2 0/3] mm: Properly document tail pages for a folio
From: Peter Xu
Date: Mon Aug 14 2023 - 14:46:04 EST
rfcv1: https://lore.kernel.org/r/20230810204944.53471-1-peterx@xxxxxxxxxx
This is rfcv2 of the patch, where I split two small changes out from the
last patch. Please refer to each patch for details. The goal of the
series is to document clearly on how the fields in struct folio is reused
over tail pages, and make it clear on what can still be reused as free.
Smoke tested on x86_64 only, kernel-doc should have no change.
Comments welcomed. Thanks.
Peter Xu (3):
mm: Add TAIL_MAPPING_REUSED_MAX
mm: Reorg and declare free spaces in struct folio tails
mm: Proper document tail pages fields for folio
include/linux/mm_types.h | 60 ++++++++++++++++++++++++++++++++++++----
mm/huge_memory.c | 6 ++--
2 files changed, 58 insertions(+), 8 deletions(-)
--
2.41.0