diff options
-rw-r--r-- | Documentation/ABI/testing/sysfs-block-zram | 7 | ||||
-rw-r--r-- | drivers/block/zram/zram_drv.c | 2 |
2 files changed, 0 insertions, 9 deletions
diff --git a/Documentation/ABI/testing/sysfs-block-zram b/Documentation/ABI/testing/sysfs-block-zram index bede9028a5a0..91ad7071b9e8 100644 --- a/Documentation/ABI/testing/sysfs-block-zram +++ b/Documentation/ABI/testing/sysfs-block-zram | |||
@@ -149,10 +149,3 @@ Description: | |||
149 | The compact file is write-only and trigger compaction for | 149 | The compact file is write-only and trigger compaction for |
150 | allocator zrm uses. The allocator moves some objects so that | 150 | allocator zrm uses. The allocator moves some objects so that |
151 | it could free fragment space. | 151 | it could free fragment space. |
152 | |||
153 | What: /sys/block/zram<id>/num_migrated | ||
154 | Date: August 2015 | ||
155 | Contact: Minchan Kim <minchan@kernel.org> | ||
156 | Description: | ||
157 | The compact file is read-only and shows how many object | ||
158 | migrated by compaction. | ||
diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c index 1626961fdb2f..f416e3ce6392 100644 --- a/drivers/block/zram/zram_drv.c +++ b/drivers/block/zram/zram_drv.c | |||
@@ -1057,7 +1057,6 @@ ZRAM_ATTR_RO(invalid_io); | |||
1057 | ZRAM_ATTR_RO(notify_free); | 1057 | ZRAM_ATTR_RO(notify_free); |
1058 | ZRAM_ATTR_RO(zero_pages); | 1058 | ZRAM_ATTR_RO(zero_pages); |
1059 | ZRAM_ATTR_RO(compr_data_size); | 1059 | ZRAM_ATTR_RO(compr_data_size); |
1060 | ZRAM_ATTR_RO(num_migrated); | ||
1061 | 1060 | ||
1062 | static struct attribute *zram_disk_attrs[] = { | 1061 | static struct attribute *zram_disk_attrs[] = { |
1063 | &dev_attr_disksize.attr, | 1062 | &dev_attr_disksize.attr, |
@@ -1067,7 +1066,6 @@ static struct attribute *zram_disk_attrs[] = { | |||
1067 | &dev_attr_num_writes.attr, | 1066 | &dev_attr_num_writes.attr, |
1068 | &dev_attr_failed_reads.attr, | 1067 | &dev_attr_failed_reads.attr, |
1069 | &dev_attr_failed_writes.attr, | 1068 | &dev_attr_failed_writes.attr, |
1070 | &dev_attr_num_migrated.attr, | ||
1071 | &dev_attr_compact.attr, | 1069 | &dev_attr_compact.attr, |
1072 | &dev_attr_invalid_io.attr, | 1070 | &dev_attr_invalid_io.attr, |
1073 | &dev_attr_notify_free.attr, | 1071 | &dev_attr_notify_free.attr, |