Sergey Senozhatsky be257c6130 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).

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>
2014-04-07 16:35:59 -07:00
..
2014-04-05 15:37:40 -07:00
2014-04-05 15:37:40 -07:00
2014-04-05 15:37:40 -07:00
2014-04-05 13:51:19 -07:00
2014-04-05 15:37:40 -07:00
2014-04-05 15:37:40 -07:00
2014-04-05 15:37:40 -07:00
2014-04-05 15:37:40 -07:00
2014-04-01 16:13:21 -07:00
2014-04-05 18:32:31 -07:00
2014-04-05 18:46:26 -07:00
2014-04-05 15:37:40 -07:00
2014-04-05 15:29:04 -07:00
2014-04-05 15:37:40 -07:00
2014-04-05 15:37:40 -07:00
2014-04-01 15:38:47 -07:00
2014-04-05 18:32:31 -07:00
2014-04-05 15:37:40 -07:00
2014-04-05 15:38:41 -07:00
2014-04-05 15:37:40 -07:00
2014-04-05 15:37:40 -07:00
2014-04-03 14:05:02 -07:00
2014-04-04 21:28:36 -07:00
2014-04-05 15:37:40 -07:00