]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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>
Thu, 17 Jan 2013 16:46:36 +0000 (08:46 -0800)
commit3bfb254e7ba8d96e1f3288fb94e33242061cc156
tree1cec0418033fecffb95221e6901b1544ccec8dce
parent2359043700dfb368aa43854285c2e48ed70d2c4b
staging: zram: factor-out zram_decompress_page() function

commit 37b51fdddf64e7ba0971d070428655f8d6f36578 upstream.

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