]> git.baikalelectronics.ru Git - kernel.git/commit
zswap: runtime enable/disable
authorDan Streetman <ddstreet@ieee.org>
Thu, 25 Jun 2015 22:00:35 +0000 (15:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Jun 2015 00:00:37 +0000 (17:00 -0700)
commitf2a80454d7275759e183af89691f37da9941028d
tree5755f0f5b8cb5bf27b86d4a8b183722442475095
parentb168d88c6919f89ec3e3b89e4265cf5f8807b9e6
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>
Documentation/vm/zswap.txt
mm/zswap.c