To prepare for the future removal of struct page fields (e.g. the removal of page->index [1]), update reset_zpdesc() to reset the descriptor via struct zpdesc instead of struct page. As struct zpdesc overlays struct page for now, no functional change is intended. [1] https://lore.kernel.org/linux-mm/Z09hOy-UY9KC8WMb@xxxxxxxxxxxxxxxxxxxx Signed-off-by: Hyeonggon Yoo <42.hyeyoo@xxxxxxxxx> --- mm/zsmalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index dae32e051779..817626a351f8 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -826,8 +826,8 @@ static void reset_zpdesc(struct zpdesc *zpdesc) __ClearPageMovable(page); ClearPagePrivate(page); - set_page_private(page, 0); - page->index = 0; + zpdesc->zspage = NULL; + zpdesc->next = NULL; __ClearPageZsmalloc(page); } -- 2.43.5