On Wed, Dec 01, 2021 at 07:15:05PM +0100, Vlastimil Babka wrote: > From: "Matthew Wilcox (Oracle)" <willy@xxxxxxxxxxxxx> > > page->freelist is for the use of slab. Using page->index is the same > set of bits as page->freelist, and by using an integer instead of a > pointer, we can avoid casts. > > Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> > Signed-off-by: Vlastimil Babka <vbabka@xxxxxxx> > Cc: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx> > Cc: Andy Lutomirski <luto@xxxxxxxxxx> > Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> > Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> > Cc: Ingo Molnar <mingo@xxxxxxxxxx> > Cc: Borislav Petkov <bp@xxxxxxxxx> > Cc: <x86@xxxxxxxxxx> > Cc: "H. Peter Anvin" <hpa@xxxxxxxxx> Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>