staging: zsmalloc: access page->private by using page_private macro

Signed-off-by: Sunghan Suh <sunghan.suh@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sunghan Suh 2013-07-12 16:08:13 +09:00 committed by Greg Kroah-Hartman
parent 87fa05e8ab
commit e842b976a8

View File

@ -423,7 +423,7 @@ static struct page *get_next_page(struct page *page)
if (is_last_page(page)) if (is_last_page(page))
next = NULL; next = NULL;
else if (is_first_page(page)) else if (is_first_page(page))
next = (struct page *)page->private; next = (struct page *)page_private(page);
else else
next = list_entry(page->lru.next, struct page, lru); next = list_entry(page->lru.next, struct page, lru);
@ -581,7 +581,7 @@ static struct page *alloc_zspage(struct size_class *class, gfp_t flags)
first_page->inuse = 0; first_page->inuse = 0;
} }
if (i == 1) if (i == 1)
first_page->private = (unsigned long)page; set_page_private(first_page, (unsigned long)page);
if (i >= 1) if (i >= 1)
page->first_page = first_page; page->first_page = first_page;
if (i >= 2) if (i >= 2)