diff options
author | Yu Zhao <[email protected]> | 2018-01-31 16:19:59 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-01-31 17:18:39 -0800 |
commit | 9c3760eb80880f3e02546e0a2ef479e1454986b3 (patch) | |
tree | e0f90aca53a602676bf50160ad1efbe0ac66a352 /drivers/fpga/fpga-mgr.c | |
parent | a7ab400d6fe73d0119fdc234e9982a6f80faea9f (diff) |
zswap: only save zswap header when necessary
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.
[[email protected]: The zpool->" prefix is a result of copy & paste]
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Yu Zhao <[email protected]>
Acked-by: Dan Streetman <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Cc: Seth Jennings <[email protected]>
Cc: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions