OSDN Git Service

BACKPORT: zram: partial IO refactoring
authorMinchan Kim <minchan@kernel.org>
Wed, 3 May 2017 21:55:41 +0000 (14:55 -0700)
committerPeter Kalauskas <peskal@google.com>
Thu, 23 Aug 2018 19:00:18 +0000 (12:00 -0700)
commit9956749a9a6e812481a83404bae6ff0396bb8326
treee6d38cb2fdce6e101b72ec0495819d607718e4ce
parent5a1f3f4275c70fccb097e24b8c80cac9626a55ac
BACKPORT: zram: partial IO refactoring

For architecture(PAGE_SIZE > 4K), zram have supported partial IO.
However, the mixed code for handling normal/partial IO is too mess,
error-prone to modify IO handler functions with upcoming feature so this
patch aims for cleaning up zram's IO handling functions.

Link: http://lkml.kernel.org/r/1492052365-16169-3-git-send-email-minchan@kernel.org
Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 1f7319c7427503abe2d365683588827b80f5714e)
Signed-off-by: Peter Kalauskas <peskal@google.com>
Bug: 112488418
Change-Id: I0f023d646d17f8156130cd0507b65f2223768adf
drivers/block/zram/zram_drv.c