summaryrefslogtreecommitdiffstats
path: root/mm/zpool.c
diff options
context:
space:
mode:
authorDan Streetman2015-06-26 00:00:35 +0200
committerLinus Torvalds2015-06-26 02:00:37 +0200
commitc00ed16a9eb98a7fc076e227bdd95c1451ca1e6e (patch)
tree5755f0f5b8cb5bf27b86d4a8b183722442475095 /mm/zpool.c
parentzram: check comp algorithm availability earlier (diff)
downloadkernel-qcow2-linux-c00ed16a9eb98a7fc076e227bdd95c1451ca1e6e.tar.gz
kernel-qcow2-linux-c00ed16a9eb98a7fc076e227bdd95c1451ca1e6e.tar.xz
kernel-qcow2-linux-c00ed16a9eb98a7fc076e227bdd95c1451ca1e6e.zip
zswap: runtime enable/disable
Change the "enabled" parameter to be configurable at runtime. Remove the enabled check from init(), and move it to the frontswap store() function; when enabled, pages will be stored, and when disabled, pages won't be stored. This is almost identical to Seth's patch from 2 years ago: http://lkml.iu.edu/hypermail/linux/kernel/1307.2/04289.html [akpm@linux-foundation.org: tweak documentation] Signed-off-by: Dan Streetman <ddstreet@ieee.org> Suggested-by: Seth Jennings <sjennings@variantweb.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/zpool.c')
0 files changed, 0 insertions, 0 deletions