[folded-merged] zram-add-bd_stat-statistics-v4.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: zram-add-bd_stat-statistics-v4
has been removed from the -mm tree.  Its filename was
     zram-add-bd_stat-statistics-v4.patch

This patch was dropped because it was folded into zram-add-bd_stat-statistics.patch

------------------------------------------------------
From: Minchan Kim <minchan@xxxxxxxxxx>
Subject: zram-add-bd_stat-statistics-v4

bd_stat represents things happened in 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/20181203024045.153534-7-minchan@xxxxxxxxxx
Signed-off-by: Minchan Kim <minchan@xxxxxxxxxx>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx>
Cc: Joey Pabalinas <joeypabalinas@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/block/zram/zram_drv.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- a/drivers/block/zram/zram_drv.c~zram-add-bd_stat-statistics-v4
+++ a/drivers/block/zram/zram_drv.c
@@ -1026,10 +1026,10 @@ static ssize_t bd_stat_show(struct devic
 
 	down_read(&zram->init_lock);
 	ret = scnprintf(buf, PAGE_SIZE,
-			"%8llu %8llu %8llu\n",
-			(u64)atomic64_read(&zram->stats.bd_count),
-			(u64)atomic64_read(&zram->stats.bd_reads),
-			(u64)atomic64_read(&zram->stats.bd_writes));
+		"%8llu %8llu %8llu\n",
+		(u64)atomic64_read(&zram->stats.bd_count) * (PAGE_SHIFT - 12),
+		(u64)atomic64_read(&zram->stats.bd_reads) * (PAGE_SHIFT - 12),
+		(u64)atomic64_read(&zram->stats.bd_writes) * (PAGE_SHIFT - 12));
 	up_read(&zram->init_lock);
 
 	return ret;
_

Patches currently in -mm which might be from minchan@xxxxxxxxxx are

zram-fix-lockdep-warning-of-free-block-handling.patch
zram-fix-double-free-backing-device.patch
zram-refactoring-flags-and-writeback-stuff.patch
zram-introduce-zram_idle-flag.patch
zram-support-idle-huge-page-writeback.patch
zram-add-bd_stat-statistics.patch
zram-writeback-throttle.patch
zram-writeback-throttle-v4.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux