]> git.karo-electronics.de Git - karo-tx-linux.git/commit
frontswap: make frontswap_init use a pointer for the ops
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 20 Mar 2013 04:07:05 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:28:23 +0000 (16:28 +1100)
commitba155e1a36c999b2884c2352b40aed4749235506
tree8ba57854236325c41a678feec846fe867490822d
parente5a4192b7b7b3637dc06396bc2aa432d5c3b802c
frontswap: make frontswap_init use a pointer for the ops

This simplifies the code in the frontswap - we can get rid of the
'backend_registered' test and instead check against frontswap_ops.

[v1: Rebase on top of 703ba7fe5e0 (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: Dan Magenheimer <dan.magenheimer@oracle.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/zcache-main.c
drivers/xen/tmem.c
include/linux/frontswap.h
mm/frontswap.c