staging: zsmalloc: access page->private by using page_private macro
authorSunghan Suh <sunghan.suh@samsung.com>
Fri, 12 Jul 2013 07:08:13 +0000 (16:08 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 21:52:19 +0000 (14:52 -0700)
Signed-off-by: Sunghan Suh <sunghan.suh@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zsmalloc/zsmalloc-main.c

index 4bb275b2d98f8fff8cb19c87101349312848059c..1a67537dbc5654be28e7d640f89d3fe3fd903e30 100644 (file)
@@ -423,7 +423,7 @@ static struct page *get_next_page(struct page *page)
        if (is_last_page(page))
                next = NULL;
        else if (is_first_page(page))
-               next = (struct page *)page->private;
+               next = (struct page *)page_private(page);
        else
                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;
                }
                if (i == 1)
-                       first_page->private = (unsigned long)page;
+                       set_page_private(first_page, (unsigned long)page);
                if (i >= 1)
                        page->first_page = first_page;
                if (i >= 2)