summaryrefslogtreecommitdiffstats
path: root/mm/zsmalloc.c
diff options
context:
space:
mode:
authorGanesh Mahendran <opensource.ganesh@gmail.com>2016-07-29 00:48:00 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2016-07-29 01:07:41 +0200
commit18fd06bf7aa7768caeda820811ac91512198dea2 (patch)
tree944826fd07010e7a8b89d236ba3ca878c673cafa /mm/zsmalloc.c
parentmm/zsmalloc: add __init,__exit attribute (diff)
downloadlinux-18fd06bf7aa7768caeda820811ac91512198dea2.tar.xz
linux-18fd06bf7aa7768caeda820811ac91512198dea2.zip
mm/zsmalloc: use helper to clear page->flags bit
Use ClearPagePrivate/ClearPagePrivate2 helpers to clear PG_private/PG_private_2 in page->flags Link: http://lkml.kernel.org/r/1467882338-4300-7-git-send-email-opensource.ganesh@gmail.com Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com> Acked-by: Minchan Kim <minchan@kernel.org> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/zsmalloc.c')
-rw-r--r--mm/zsmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index fa08236a9036..cd2a81e8b429 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -937,8 +937,8 @@ static void unpin_tag(unsigned long handle)
static void reset_page(struct page *page)
{
__ClearPageMovable(page);
- clear_bit(PG_private, &page->flags);
- clear_bit(PG_private_2, &page->flags);
+ ClearPagePrivate(page);
+ ClearPagePrivate2(page);
set_page_private(page, 0);
page_mapcount_reset(page);
ClearPageHugeObject(page);