From: Ganesh Mahendran Date: Thu, 28 Jul 2016 22:48:00 +0000 (-0700) Subject: mm/zsmalloc: use helper to clear page->flags bit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=18fd06bf7aa7768caeda820811ac91512198dea2;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Acked-by: Minchan Kim Reviewed-by: Sergey Senozhatsky Cc: Vlastimil Babka Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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);