]> git.kernelconcepts.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, 30 Apr 2013 22:27:01 +0000 (15:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 May 2013 00:04:01 +0000 (17:04 -0700)
commitf42158fe6785dd366073c7fd00f159a65c631597
treee57f6ac9b87ebce63e5f87a5a032bf7d77b04fe8
parent10a7a0771399a57a297fca9615450dbb3f88081a
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/staging/zcache/zcache-main.c
drivers/xen/tmem.c