Skip to contentSkip to conversation

+ zram-document-failed_reads-failed_writes-stats.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Feb 5, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Subject: + zram-document-failed_reads-failed_writes-stats.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 05 Feb 2014 12:45:39 -0800

The patch titled
Subject: zram: document failed_reads, failed_writes stats
has been added to the -mm tree. Its filename is
zram-document-failed_reads-failed_writes-stats.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/zram-document-failed_reads-failed_writes-stats.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/zram-document-failed_reads-failed_writes-stats.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Sergey Senozhatsky <[email protected]>
Subject: zram: document failed_reads, failed_writes stats

Document failed_reads' and failed_writes' device attributes. Remove info about `discard' - there is no such zram attr.

---

 Documentation/ABI/testing/sysfs-block-zram |   24 +++++++++++--------
 Documentation/blockdev/zram.txt            |    3 +-
 2 files changed, 17 insertions(+), 10 deletions(-)
Documentation/ABI/testing/sysfs-block-zram renamed from Documentation/ABI/testing/sysfs-block-zram~zram-document-failed_reads-failed_writes-stats +15 -9
diff -puN Documentation/ABI/testing/sysfs-block-zram~zram-document-failed_reads-failed_writes-stats Documentation/ABI/testing/sysfs-block-zram
@@ -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 <[email protected]>
+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 <[email protected]>
+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 <[email protected]>
@@ -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 <[email protected]>
-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 <[email protected]>
Documentation/blockdev/zram.txt renamed from Documentation/blockdev/zram.txt~zram-document-failed_reads-failed_writes-stats +2 -1
diff -puN Documentation/blockdev/zram.txt~zram-document-failed_reads-failed_writes-stats Documentation/blockdev/zram.txt
@@ -51,9 +51,10 @@ size of the disk when not in use so a hu
 		disksize
 		num_reads
 		num_writes
+		failed_reads
+		failed_writes
 		invalid_io
 		notify_free
-		discard
 		zero_pages
 		orig_data_size
 		compr_data_size

_

Patches currently in -mm which might be from [email protected] are

zram-drop-init_done-struct-zram-member.patch zram-do-not-pass-rw-argument-to-__zram_make_request.patch zram-remove-good-and-bad-compress-stats.patch zram-use-atomic64_t-for-all-zram-stats.patch zram-remove-zram-stats-code-duplication.patch zram-report-failed-read-and-write-stats.patch zram-drop-not-used-table-count-member.patch zram-move-zram-size-warning-to-documentation.patch zram-document-failed_reads-failed_writes-stats.patch