[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180109023526.GA6953@jagdpanzerIV>
Date: Tue, 9 Jan 2018 11:35:26 +0900
From: Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>
To: Yu Zhao <yuzhao@...gle.com>
Cc: Dan Streetman <ddstreet@...e.org>,
Seth Jennings <sjenning@...hat.com>,
Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>,
Minchan Kim <minchan@...nel.org>,
Nitin Gupta <ngupta@...are.org>,
Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] zswap: only save zswap header if zpool is shrinkable
On (01/08/18 14:51), Yu Zhao wrote:
> We waste sizeof(swp_entry_t) for zswap header when using zsmalloc
> as zpool driver because zsmalloc doesn't support eviction.
>
> Add zpool_shrinkable() to detect if zpool is shrinkable, and use
> it in zswap to avoid waste memory for zswap header.
>
> Signed-off-by: Yu Zhao <yuzhao@...gle.com>
at a glance, looks good to me
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
-ss
Powered by blists - more mailing lists