]> Git Repo - linux.git/commit - mm/frontswap.c
mm: frontswap: cleanup code
authorBob Liu <[email protected]>
Tue, 30 Apr 2013 22:26:53 +0000 (15:26 -0700)
committerLinus Torvalds <[email protected]>
Wed, 1 May 2013 00:04:00 +0000 (17:04 -0700)
commitf066ea230a65f939afc354beae62716ab5f0e645
tree1056e57d4b0c9819c74bd929006cf352994230d2
parent1e01c968db3d0aebd48e31db15f24516b03128df
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 <[email protected]>
Cc: Wanpeng Li <[email protected]>
Cc: Andor Daam <[email protected]>
Cc: Dan Magenheimer <[email protected]>
Cc: Florian Schmaus <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Stefan Hengelein <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/frontswap.h
mm/frontswap.c
This page took 0.053678 seconds and 4 git commands to generate.