summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSunghan Suh <sunghan.suh@samsung.com>2013-07-12 16:08:13 +0900
committerChanho Park <chanho61.park@samsung.com>2014-03-20 17:44:26 +0900
commit24008a9aedeacebd1a8092151179de428d036957 (patch)
treeb9695ffdc7bce4635a4c2528f7314a92d3cdeee9 /drivers
parent1d4055a737b9663e68244b2996eb3f435b1d4322 (diff)
downloadlinux-3.10-24008a9aedeacebd1a8092151179de428d036957.tar.gz
linux-3.10-24008a9aedeacebd1a8092151179de428d036957.tar.bz2
linux-3.10-24008a9aedeacebd1a8092151179de428d036957.zip
staging: zsmalloc: access page->private by using page_private macro
Change-Id: I3fb9c7c58baeac6268961750ed859518c421b770 Signed-off-by: Sunghan Suh <sunghan.suh@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-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 cdc118f52a1..3b950e5a918 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);
@@ -590,7 +590,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)