Sergey Senozhatsky 8811a9421b zram: use generic start/end io accounting
Use bio generic_start_io_acct() and generic_end_io_acct() to account
device's block layer statistics.  This will let users to monitor zram
activities using sysstat and similar packages/tools.

Apart from the usual per-stat sysfs attr, zram IO stats are now also
available in '/sys/block/zram<id>/stat' and '/proc/diskstats' files.

We will slowly get rid of per-stat sysfs files.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-04-15 16:35:21 -07:00
..
2015-02-16 17:56:04 -08:00
2014-08-08 15:57:28 -07:00
2014-08-08 15:57:28 -07:00
2015-02-16 17:56:04 -08:00
2015-01-02 15:20:25 -07:00
2015-01-02 15:20:25 -07:00
2014-01-30 16:56:55 -08:00
2015-03-05 08:51:03 +01:00
2015-02-19 14:27:42 +03:00
2013-11-08 09:10:30 -07:00
2015-01-21 16:28:57 +10:30