Skip to content

RFC Page flags: Cleanup, reorg and introduce 5 new flags

Christoph Lameter linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 2 repliesIn review

Changes in v1 from the cover letter

- Fix various things as suggested by Mel and Kame-san.
- Avoid the #idef CONFIG_PAGEFLAG_EXTENDED. The new page flags are always available.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Pageflags: Use an enum for the flagsinclude/linux/page-flags.h+26 -300 replies
2/10Pageflags: Introduce macros to generate page flag functionsinclude/linux/page-flags.h+41 -00 replies
3/10Pageflags: Convert to the use of new macrosinclude/linux/page-flags.h+64 -1270 replies
4/10Pageflags: Use proper page flag functions in Xenarch/x86/xen/mmu.c include/linux/page-flags.h+3 -30 replies
5/10Pageflags: Eliminate PG_xxx aliasesinclude/linux/page-flags.h mm/page_alloc.c+4 -80 replies
6/10Sparsemem: Vmemmap does not need section bitsinclude/linux/mm.h+7 -40 replies
7/10Kbuild: Create a way to create preprocessor constants from C expressionsKbuild include/linux/bounds.h kernel/bounds.c+55 -20 replies
8/10Pageflags: Get rid of FLAGS_RESERVEDinclude/linux/bounds.h include/linux/mm.h include/linux/mmzone.h +2 more+13 -290 replies
9/10Get rid of __ZONE_COUNTinclude/linux/bounds.h include/linux/mmzone.h kernel/bounds.c+7 -170 replies
10/10Pageflags: Land grabinclude/linux/page-flags.h+14 -272 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [rfc 00/10] [Patch] Page flags: Cleanup, reorg and introduce 5 new flags

A set of patches that attempts to improve page flag handling. First of all a method is introduced to generate the page flag functions using macros. Then the number of page flags used by sparsemem is reduced. All page flag operations will no longer be macros. All flags will use inline function.

Then we add a way to export enum constants to the preprocessor which allows us to get rid of __ZONE_COUNT and use the NR_PAGEFLAGS for the dynamic calculation of actually available page flags for fields.

Optimization of sparsemem vmemmap allows us to avoid the use of page flags for section ids. The newly available flags are taken for various ongoing VM projects.

RFC->V1
- Fix various things as suggested by Mel and Kame-san.
- Avoid the #idef CONFIG_PAGEFLAG_EXTENDED. The new page flags are always available.