zram: document failed_reads, failed_writes stats
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Mon, 7 Apr 2014 22:38:08 +0000 (15:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Apr 2014 23:36:00 +0000 (16:36 -0700)
Document `failed_reads' and `failed_writes' device attributes.
Remove info about `discard' - there is no such zram attr.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Jerome Marchand <jmarchan@redhat.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/ABI/testing/sysfs-block-zram
Documentation/blockdev/zram.txt

index 3f0b9ae61d8cb710f39bbbe71ae3debbf0439f8e..8aa0468416255bb85c2a97b1900f62d15ed2a5f3 100644 (file)
@@ -43,6 +43,21 @@ Description:
                The invalid_io file is read-only and specifies the number of
                non-page-size-aligned I/O requests issued to this device.
 
+What:          /sys/block/zram<id>/failed_reads
+Date:          February 2014
+Contact:       Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
+Description:
+               The failed_reads file is read-only and specifies the number of
+               failed reads happened on this device.
+
+
+What:          /sys/block/zram<id>/failed_writes
+Date:          February 2014
+Contact:       Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
+Description:
+               The failed_writes file is read-only and specifies the number of
+               failed writes happened on this device.
+
 What:          /sys/block/zram<id>/notify_free
 Date:          August 2010
 Contact:       Nitin Gupta <ngupta@vflare.org>
@@ -53,15 +68,6 @@ Description:
                is freed. This statistic is applicable only when this disk is
                being used as a swap disk.
 
-What:          /sys/block/zram<id>/discard
-Date:          August 2010
-Contact:       Nitin Gupta <ngupta@vflare.org>
-Description:
-               The discard file is read-only and specifies the number of
-               discard requests received by this device. These requests
-               provide information to block device regarding blocks which are
-               no longer used by filesystem.
-
 What:          /sys/block/zram<id>/zero_pages
 Date:          August 2010
 Contact:       Nitin Gupta <ngupta@vflare.org>
index 393541be1ec0ef62fecbc5541de3f6648b71a993..b31ac5e5d4b9291d741fb37a5b82e380bc4d2d70 100644 (file)
@@ -51,9 +51,10 @@ size of the disk when not in use so a huge zram is wasteful.
                disksize
                num_reads
                num_writes
+               failed_reads
+               failed_writes
                invalid_io
                notify_free
-               discard
                zero_pages
                orig_data_size
                compr_data_size