OpenCloudOS-Kernel/drivers/staging/zcache
Dan Magenheimer 835f2f5160 staging: zcache: enable zcache to be built/loaded as a module
Allow zcache to be built/loaded as a module.  Note runtime dependency
disallows loading if cleancache/frontswap lazy initialization patches
are not present.  Zsmalloc support has not yet been merged into zcache
but, once merged, could now easily be selected via a module_param.

If built-in (not built as a module), the original mechanism of enabling
via a kernel boot parameter is retained, but this should be considered
deprecated.

Note that module unload is explicitly not yet supported.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
[v1: Rebased with different order of patches]
[v2: Removed [CLEANCACHE|FRONTSWAP]_HAS_LAZY_INIT ifdef]
[v3: Rebased on top of ramster->zcache move]
[v4: Redid the Makefile]
[v5: s/ZCACHE2/ZCACHE/]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Cc: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: Andor Daam <andor.daam@googlemail.com>
Cc: Florian Schmaus <fschmaus@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Stefan Hengelein <ilendir@googlemail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-04-30 17:04:01 -07:00
..
ramster staging: zcache: enable ramster to be built/loaded as a module 2013-04-30 17:04:01 -07:00
Kconfig staging: zcache: enable zcache to be built/loaded as a module 2013-04-30 17:04:01 -07:00
Makefile staging: ramster/debug: Add CONFIG_RAMSTER_DEBUG Kconfig entry 2013-04-13 06:27:09 -07:00
TODO staging: zcache: clean TODO list 2013-04-03 13:38:37 -07:00
debug.c staging: zcache: introduce zero-filled page stat count 2013-04-03 13:38:37 -07:00
debug.h staging: zcache/debug: fix coding style 2013-04-13 06:29:00 -07:00
ramster.h staging: zcache: enable ramster to be built/loaded as a module 2013-04-30 17:04:01 -07:00
tmem.c staging: zcache: enable zcache to be built/loaded as a module 2013-04-30 17:04:01 -07:00
tmem.h staging: zcache: enable zcache to be built/loaded as a module 2013-04-30 17:04:01 -07:00
zbud.c drivers: staging: zcache: fix compile error 2013-04-02 12:43:41 -07:00
zbud.h staging: zcache: rename ramster to zcache 2013-01-18 13:43:44 -08:00
zcache-main.c staging: zcache: enable zcache to be built/loaded as a module 2013-04-30 17:04:01 -07:00
zcache.h staging: zcache: enable zcache to be built/loaded as a module 2013-04-30 17:04:01 -07:00