zswap: allow initialization at boot without pool
authorDan Streetman <[email protected]>
Mon, 27 Feb 2017 22:26:47 +0000 (14:26 -0800)
committerLinus Torvalds <[email protected]>
Tue, 28 Feb 2017 02:43:45 +0000 (18:43 -0800)
commitae3d89a7e0871bc7b57ef8d3c4dd7fdda43c285c
tree21453fc7be1d56cc7c4386ed1f3ffd60af504139
parent01cddfe99008da87dd4f6b8fbfa31e09257b9133
zswap: allow initialization at boot without pool

Allow zswap to initialize at boot even if it can't create its pool due
to a failure to create a zpool and/or compressor.  Allow those to be
created later, from the sysfs module param interface.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Dan Streetman <[email protected]>
Cc: Seth Jennings <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/zswap.c