]> 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>
Tue, 26 Mar 2013 23:24:19 +0000 (10:24 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:03 +0000 (17:12 +1100)
commitb307a6138b6a31ada6bdb84e9e0f6849bf02569f
treef3bb0c39f8ce5d25d5d69b9d98e55b37139edf78
parentc4f7a2271feb9f2becf686875e44c753e59a1e4a
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