]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cleancache: Make cleancache_init use a pointer for the ops
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 20 Mar 2013 04:07:06 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:28:24 +0000 (16:28 +1100)
commit009fce0f024156cedc48db7dbb3096040012f1f1
treeb6fb48bdfcaa2112230d8c0c936922dcbc078f88
parent9f35d46e96ca91b6560bc9d252b613a733e50d4b
cleancache: Make cleancache_init use a pointer for the ops

Instead of using a backend_registered to determine whether a backend is
enabled.  This allows us to remove the backend_register check and just do
'if (cleancache_ops)'

[v1: Rebase on top of b97c4b430b0a (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/cleancache.h
mm/cleancache.c