diff options
author | Dan Streetman <ddstreet@ieee.org> | 2017-02-27 23:26:50 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-02-28 03:43:45 +0100 |
commit | bae21db88b7075662f28a0aa57e97016a2fdabfd (patch) | |
tree | c052b5c5769cd00584c4e5744249ecac5c6d63dd /lib/kstrtox.h | |
parent | zswap: allow initialization at boot without pool (diff) | |
download | linux-bae21db88b7075662f28a0aa57e97016a2fdabfd.tar.xz linux-bae21db88b7075662f28a0aa57e97016a2fdabfd.zip |
zswap: clear compressor or zpool param if invalid at init
If either the compressor and/or zpool param are invalid at boot, and
their default value is also invalid, set the param to the empty string
to indicate there is no compressor and/or zpool configured. This allows
users to check the sysfs interface to see which param needs changing.
Link: http://lkml.kernel.org/r/20170124200259.16191-4-ddstreet@ieee.org
Signed-off-by: Dan Streetman <dan.streetman@canonical.com>
Cc: Seth Jennings <sjenning@redhat.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/kstrtox.h')
0 files changed, 0 insertions, 0 deletions