]> git.baikalelectronics.ru Git - kernel.git/commit
zram: clear disk io accounting when reset zram device
authorWeijie Yang <weijie.yang@samsung.com>
Wed, 10 Jun 2015 18:14:49 +0000 (11:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Jun 2015 23:43:43 +0000 (16:43 -0700)
commit674d3388e1d38c7bf57b127e78b8bb5b84fffbfe
tree9ec97b27b4c5022d7d166bc1cc21240e799f3fe9
parent26cbedd072d8fa4dee5416ece4b5d1d13c6d1b22
zram: clear disk io accounting when reset zram device

Clear zram disk io accounting when resetting the zram device.  Otherwise
the residual io accounting stat will affect the diskstat in the next
zram active cycle.

Signed-off-by: Weijie Yang <weijie.yang@samsung.com>
Acked-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/zram/zram_drv.c