Messages in this thread | | | Date | Tue, 9 Jan 2018 11:35:26 +0900 | From | Sergey Senozhatsky <> | 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@google.com>
at a glance, looks good to me Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
-ss
| |