[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1467355266-9735-8-git-send-email-opensource.ganesh@gmail.com>
Date: Fri, 1 Jul 2016 14:41:06 +0800
From: Ganesh Mahendran <opensource.ganesh@...il.com>
To: linux-kernel@...r.kernel.org, linux-mm@...ck.org
Cc: akpm@...ux-foundation.org, minchan@...nel.org, ngupta@...are.org,
sergey.senozhatsky.work@...il.com, rostedt@...dmis.org,
mingo@...hat.com, Ganesh Mahendran <opensource.ganesh@...il.com>
Subject: [PATCH 8/8] mm/zsmalloc: use helper to clear page->flags bit
user ClearPagePrivate/ClearPagePrivate2 helper to clear
PG_private/PG_private_2 in page->flags
Signed-off-by: Ganesh Mahendran <opensource.ganesh@...il.com>
---
mm/zsmalloc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 1c7460b..356db9a 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -945,8 +945,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);
--
1.9.1
Powered by blists - more mailing lists