]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: zcache: enable ramster to be built/loaded as a module
authorDan Magenheimer <dan.magenheimer@oracle.com>
Tue, 26 Mar 2013 23:24:20 +0000 (10:24 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:04 +0000 (17:12 +1100)
commit8f05189d126882b717dc4e61201e8d7a954db64f
treedfab0062757a4110b6ae27a6df264fbba9e5783c
parent08c2c8b5db58407b9c91f08b8fd29719cda9bbcb
staging: zcache: enable ramster to be built/loaded as a module

Enable module support for ramster.  Note runtime dependency disallows
loading if cleancache/frontswap lazy initialization patches are not
present.

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: Fixed compile issues since ramster_init now has four arguments]
[v2: Fixed rebase on ramster->zcache move]
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>
drivers/staging/zcache/ramster.h
drivers/staging/zcache/ramster/nodemanager.c
drivers/staging/zcache/ramster/ramster.c
drivers/staging/zcache/ramster/ramster.h
drivers/staging/zcache/ramster/ramster_nodemanager.h
drivers/staging/zcache/zcache-main.c