[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160516021420.GC504@swordfish>
Date: Mon, 16 May 2016 11:14:20 +0900
From: Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>
To: Minchan Kim <minchan@...nel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Sergey Senozhatsky <sergey.senozhatsky@...il.com>
Subject: Re: [PATCH v5 07/12] zsmalloc: factor page chain functionality out
On (05/09/16 11:20), Minchan Kim wrote:
> For page migration, we need to create page chain of zspage dynamically
> so this patch factors it out from alloc_zspage.
>
> Cc: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
> Signed-off-by: Minchan Kim <minchan@...nel.org>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
[..]
> + page = alloc_page(flags);
> + if (!page) {
> + while (--i >= 0)
> + __free_page(pages[i]);
put_page() ?
a minor nit, put_page() here probably will be in alignment
with __free_zspage(), which does put_page().
-ss
> + return NULL;
> + }
> + pages[i] = page;
> }
>
> + create_page_chain(pages, class->pages_per_zspage);
> + first_page = pages[0];
> + init_zspage(class, first_page);
> +
> return first_page;
> }
Powered by blists - more mailing lists