summaryrefslogtreecommitdiff
path: root/drivers/staging/zsmalloc
diff options
context:
space:
mode:
authorSunghan Suh <sunghan.suh@samsung.com>2013-07-12 16:08:13 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-23 14:52:19 -0700
commite842b976a88a39b447fc34bd0fcb3c0be0a1d9d9 (patch)
tree4131d4cdfec0538e926134bac2151965ce089135 /drivers/staging/zsmalloc
parent87fa05e8ab38149c1e69324c96ade9d47f6d27b9 (diff)
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>
Diffstat (limited to 'drivers/staging/zsmalloc')
-rw-r--r--drivers/staging/zsmalloc/zsmalloc-main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/zsmalloc/zsmalloc-main.c b/drivers/staging/zsmalloc/zsmalloc-main.c
index 4bb275b2d98f..1a67537dbc56 100644
--- a/drivers/staging/zsmalloc/zsmalloc-main.c
+++ b/drivers/staging/zsmalloc/zsmalloc-main.c
@@ -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)