Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1435054 > unrolled thread

[PATCH 8/8] mm/zsmalloc: use helper to clear page->flags bit

Started byGanesh Mahendran <opensource.ganesh@gmail.com>
First post2016-07-01 08:50 +0200
Last post2016-07-04 02:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 8/8] mm/zsmalloc: use helper to clear page->flags bit Ganesh Mahendran <opensource.ganesh@gmail.com> - 2016-07-01 08:50 +0200
    Re: [PATCH 8/8] mm/zsmalloc: use helper to clear page->flags bit Minchan Kim <minchan@kernel.org> - 2016-07-04 02:20 +0200

#1435054 — [PATCH 8/8] mm/zsmalloc: use helper to clear page->flags bit

FromGanesh Mahendran <opensource.ganesh@gmail.com>
Date2016-07-01 08:50 +0200
Subject[PATCH 8/8] mm/zsmalloc: use helper to clear page->flags bit
Message-ID<rQ0r0-3gE-21@gated-at.bofh.it>
user ClearPagePrivate/ClearPagePrivate2 helper to clear
PG_private/PG_private_2 in page->flags

Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.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

[toc] | [next] | [standalone]


#1436089

FromMinchan Kim <minchan@kernel.org>
Date2016-07-04 02:20 +0200
Message-ID<rQZMe-72m-7@gated-at.bofh.it>
In reply to#1435054
On Fri, Jul 01, 2016 at 02:41:06PM +0800, Ganesh Mahendran wrote:
> user ClearPagePrivate/ClearPagePrivate2 helper to clear
> PG_private/PG_private_2 in page->flags
> 
> Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web