]> 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>
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)
commit00a0bec410c35010aad786b58026aa57e66d8a92
tree18768cfe02c86cc7d1fbc8b1769913398af9a624
parent97f39fa60987e94b3cf60fc14f7adcdff20ccffd
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