lkml.org 
[lkml]   [2016]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 8/8] mm/zsmalloc: use helper to clear page->flags bit
On (07/04/16 14:49), Ganesh Mahendran wrote:
> Date: Mon, 4 Jul 2016 14:49:59 +0800
> From: Ganesh Mahendran <opensource.ganesh@gmail.com>
> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org
> Cc: akpm@linux-foundation.org, minchan@kernel.org, ngupta@vflare.org,
> sergey.senozhatsky.work@gmail.com, rostedt@goodmis.org, mingo@redhat.com,
> Ganesh Mahendran <opensource.ganesh@gmail.com>
> Subject: [PATCH v2 8/8] mm/zsmalloc: use helper to clear page->flags bit
> X-Mailer: git-send-email 1.9.1
>
> 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>

Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>

-ss

> ----
> v2: none
> ---
> mm/zsmalloc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
> index 756f839..297f25b 100644
> --- a/mm/zsmalloc.c
> +++ b/mm/zsmalloc.c
> @@ -940,8 +940,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
>

\
 
 \ /
  Last update: 2016-07-04 11:21    [W:0.118 / U:6.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site