zram: report failed read and write stats
authorSergey Senozhatsky <[email protected]>
Mon, 7 Apr 2014 22:38:05 +0000 (15:38 -0700)
committerLinus Torvalds <[email protected]>
Mon, 7 Apr 2014 23:36:00 +0000 (16:36 -0700)
commit6444724939db5de7390c90f7b4a657159b3b4465
tree7f92a0596c8312c7afff3630e9a00825269d83df
parenta68eb3b65e658406d386bebef02277f4007b2f45
zram: report failed read and write stats

zram accounted but did not report numbers of failed read and write
queries.  make these stats available as failed_reads and failed_writes
attrs.

Signed-off-by: Sergey Senozhatsky <[email protected]>
Acked-by: Minchan Kim <[email protected]>
Acked-by: Jerome Marchand <[email protected]>
Cc: Nitin Gupta <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/block/zram/zram_drv.c