]> git.karo-electronics.de Git - karo-tx-linux.git/commit
zcache/tmem: Better error checking on frontswap_register_ops return value.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 26 Mar 2013 23:24:20 +0000 (10:24 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:03 +0000 (17:12 +1100)
commit08c2c8b5db58407b9c91f08b8fd29719cda9bbcb
tree4c0e1417a38e54ad231cad04deefb1f35e676abe
parent035bb2753573082e5ebd5fd9750798caf2581f12
zcache/tmem: Better error checking on frontswap_register_ops return value.

In the past it either used to be NULL or the "older" backend. Now we
also return -Exx error codes.

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