From: Sergey Senozhatsky Date: Wed, 15 Apr 2015 23:15:57 +0000 (-0700) Subject: zram: use generic start/end io accounting X-Git-Tag: omap-for-v4.1/fixes-rc1~128^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8811a9421b325b06a2456ae1b8fe23e838cbfe33;p=pandora-kernel.git 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/stat' and '/proc/diskstats' files. We will slowly get rid of per-stat sysfs files. Signed-off-by: Sergey Senozhatsky Acked-by: Minchan Kim Cc: Nitin Gupta Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed