[PATCH 1/2] zram: factor-out zram_decompress_page() function (resend)

2012-10-30 Thread Sergey Senozhatsky
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 Reviewed-by: Nitin Gupta ---

[PATCH 1/2] zram: factor-out zram_decompress_page() function (resend)

2012-10-30 Thread Sergey Senozhatsky
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.senozhat...@gmail.com Reviewed-by: Nitin