diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2014-04-07 15:38:01 -0700 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2016-06-05 21:21:44 +0200 |
commit | 8d34c7612cbd9b98b7e4b75561c6f33c22935b06 (patch) | |
tree | abc88f989da77242767852be6562a89974baa722 /drivers/block/xen-blkback | |
parent | bfeb197ca636331f8d7218eeb47cb6e98c076a82 (diff) | |
download | kernel_samsung_espresso10-8d34c7612cbd9b98b7e4b75561c6f33c22935b06.zip kernel_samsung_espresso10-8d34c7612cbd9b98b7e4b75561c6f33c22935b06.tar.gz kernel_samsung_espresso10-8d34c7612cbd9b98b7e4b75561c6f33c22935b06.tar.bz2 |
zram: do not pass rw argument to __zram_make_request()
Do not pass rw argument down the __zram_make_request() -> zram_bvec_rw()
chain, decode it in zram_bvec_rw() instead. Besides, this is the place
where we distinguish READ and WRITE bio data directions, so account zram
RW stats here, instead of __zram_make_request(). This also allows to
account a real number of zram READ/WRITE operations, not just requests
(single RW request may cause a number of zram RW ops with separate
locking, compression/decompression, etc).
Change-Id: Ibc8aa078d076ea84fb952eac6877ac48493e7288
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Acked-by: Jerome Marchand <jmarchan@redhat.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block/xen-blkback')
0 files changed, 0 insertions, 0 deletions