staging: zram: factor-out zram_decompress_page() function
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Tue, 30 Oct 2012 19:40:23 +0000 (22:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Oct 2012 21:49:09 +0000 (14:49 -0700)
commit37b51fdddf64e7ba0971d070428655f8d6f36578
treee43b30fd9195b901df7b0a17cffe82789f0e066d
parente446f5a8540a845ed92fca4109e67c8f0c76031f
staging: zram: factor-out zram_decompress_page() function

zram_bvec_read() shared decompress functionality with zram_read_before_write() function.
Factor-out and make commonly used zram_decompress_page() function, which also simplified
error handling in zram_bvec_read().

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Reviewed-by: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zram/zram_drv.c