--- a/mm/zsmalloc.c~mm-zsmallocc-use-page_private-to-access-page-private +++ a/mm/zsmalloc.c @@ -816,7 +816,7 @@ static int get_pages_per_zspage(int clas static struct zspage *get_zspage(struct page *page) { - struct zspage *zspage = (struct zspage *)page->private; + struct zspage *zspage = (struct zspage *)page_private(page); BUG_ON(zspage->magic != ZSPAGE_MAGIC); return zspage;