Staging: zram: Refactor zram_read/write() functions
authorJerome Marchand <jmarchan@redhat.com>
Fri, 10 Jun 2011 13:28:47 +0000 (15:28 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Jul 2011 17:07:13 +0000 (10:07 -0700)
commit8c921b2b43d47faa7c11eac1d2673bbe7fbc41dc
tree353c99f06284625c3c6450770a360ced1ea61f66
parent6a587e835e3a8ea2fe9e8fd038553f2090666bd5
Staging: zram: Refactor zram_read/write() functions

This patch refactor the code of zram_read/write() functions. It does
not removes a lot of duplicate code alone, but is mostly a helper for
the third patch of this series (Staging: zram: allow partial page
operations).

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/zram/zram_drv.c