On Wed, Dec 01, 2021 at 07:15:04PM +0100, Vlastimil Babka wrote: > From: "Matthew Wilcox (Oracle)" <willy@xxxxxxxxxxxxx> > > The ->freelist and ->units members of struct page are for the use of slab > only. I'm not particularly familiar with zsmalloc, so generate the same > code by using page->index to store 'page' (page->index and page->freelist > are at the same offset in struct page). This should be cleaned up > properly at some point by somebody who is familiar with zsmalloc. > > Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> > Signed-off-by: Vlastimil Babka <vbabka@xxxxxxx> > Cc: Minchan Kim <minchan@xxxxxxxxxx> > Cc: Nitin Gupta <ngupta@xxxxxxxxxx> > Cc: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx> Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>