]> www.infradead.org Git - users/willy/linux.git/commit
zsmalloc: Stop using slab fields in struct page
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 22 Sep 2021 18:58:38 +0000 (14:58 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 4 Oct 2021 13:31:03 +0000 (09:31 -0400)
commit009c94e347607bc4f461ebee95f257516911f3b3
treec78aa0df9faea52694991d0f9dfa7ff7e9060f89
parent1827d98952bb2ec37240256ccb919bc926adc8c4
zsmalloc: Stop using slab fields in struct page

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@infradead.org>
mm/zsmalloc.c