Messages in this thread | | | Date | Thu, 11 Jan 2018 16:04:59 +0900 | From | Sergey Senozhatsky <> | Subject | Re: [PATCH v3] zswap: only save zswap header when necessary |
| |
On (01/10/18 14:56), 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_evictable() to detect if zpool is potentially evictable, > and use it in zswap to avoid waste memory for zswap header. > > Signed-off-by: Yu Zhao <yuzhao@google.com>
looks good to me.
FWIW, Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
-ss
| |