diff options
author | Sunghan Suh <sunghan.suh@samsung.com> | 2013-07-12 16:08:13 +0900 |
---|---|---|
committer | Simon Shields <keepcalm444@gmail.com> | 2016-06-12 21:19:48 +1000 |
commit | 195db76c72c596469fc6a194f968ccec33f1de09 (patch) | |
tree | 4972984d0cf9653e2991f2b3107b209eff76d58f /drivers/staging | |
parent | 210b418775c845cd6b8116c7b144b7b36f9c90fb (diff) | |
download | kernel_samsung_smdk4412-195db76c72c596469fc6a194f968ccec33f1de09.zip kernel_samsung_smdk4412-195db76c72c596469fc6a194f968ccec33f1de09.tar.gz kernel_samsung_smdk4412-195db76c72c596469fc6a194f968ccec33f1de09.tar.bz2 |
staging: zsmalloc: access page->private by using page_private macro
Change-Id: Ia09720c7787bc03c69d01874437bdc619cae8c7e
Signed-off-by: Sunghan Suh <sunghan.suh@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: e842b976a88a39b447fc34bd0fcb3c0be0a1d9d9
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/zsmalloc/zsmalloc-main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/zsmalloc/zsmalloc-main.c b/drivers/staging/zsmalloc/zsmalloc-main.c index e5bdb26..523b937 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) |