]> www.infradead.org Git - users/willy/linux.git/commit
zram: add bd_stat statistics
authorMinchan Kim <minchan@kernel.org>
Wed, 5 Dec 2018 00:13:53 +0000 (11:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2018 00:13:53 +0000 (11:13 +1100)
commiteae3a7cc9de1cc0c6b8145fb8caf8e1702ea2121
treefa23da1b0538e414a843b0c13e123b3d25d9db55
parent66b79d95b3697998ed0231a78025d18df21694a8
zram: add bd_stat statistics

bd_stat represents things that happened in the backing device.  Currently
it supports bd_counts, bd_reads and bd_writes which are helpful to
understand wearout of flash and memory saving.

Link: http://lkml.kernel.org/r/20181127055429.251614-7-minchan@kernel.org
Signed-off-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Joey Pabalinas <joeypabalinas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Documentation/ABI/testing/sysfs-block-zram
Documentation/blockdev/zram.txt
drivers/block/zram/zram_drv.c
drivers/block/zram/zram_drv.h