]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: frontswap: cleanup code
authorBob Liu <lliubbo@gmail.com>
Tue, 26 Mar 2013 23:24:18 +0000 (10:24 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:02 +0000 (17:12 +1100)
commit3c85c5ad7c60eccfdc05714f51f8c9f62a1860ee
tree72c29dc2bb3a16a03f65166dbc9d984961e7a8bd
parent00a0bec410c35010aad786b58026aa57e66d8a92
mm: frontswap: cleanup code

After allowing tmem backends to build/run as modules, frontswap_enabled
always true if defined CONFIG_FRONTSWAP.  But frontswap_test() depends on
whether backend is registered, mv it into frontswap.c using fronstswap_ops
to make the decision.

frontswap_set/clear are not used outside frontswap, so don't export them.

Signed-off-by: Bob Liu <lliubbo@gmail.com>
Cc: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: Andor Daam <andor.daam@googlemail.com>
Cc: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: Florian Schmaus <fschmaus@gmail.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Stefan Hengelein <ilendir@googlemail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/frontswap.h
mm/frontswap.c