Skip to contentSkip to conversation

zram03: drop obsolete sysfs interfaces

PATCH New Yang Shi 2 participants 3 messages May 23, 2018 – May 30, 2018

lore
Share & tools
lore

Yang Shi

author
#0 lore raw

PATCH 1/1 zram03: drop obsolete sysfs interfaces

Due to upstream linux commit c87d1655c29500b459fb135258a93f8309ada9c7 ("zram: remove obsolete sysfs attrs"), some sysfs interfaces are not available anymore. Remove dumping them to avoid test case failure.

---
 testcases/kernel/device-drivers/zram/zram03.c | 6 ------
 1 file changed, 6 deletions(-)
testcases/kernel/device-drivers/zram/zram03.c +0 -6
index 3f7ab4e..f2c166c 100644
@@ -185,11 +185,5 @@ static void print(char *string)
 static void dump_info(void)
 {
 	print("initstate");
-	print("compr_data_size");
-	print("orig_data_size");
 	print("disksize");
-	print("mem_used_total");
-	print("num_reads");
-	print("num_writes");
-	print("zero_pages");
 }
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 zram03: drop obsolete sysfs interfaces

Quoted 9 lines
 testcases/kernel/device-drivers/zram/zram03.c | 6 ------
 1 file changed, 6 deletions(-)
testcases/kernel/device-drivers/zram/zram03.c +0 -0
index 3f7ab4e..f2c166c 100644
@@ -185,11 +185,5 @@ static void print(char *string)
 static void dump_info(void)

testcases/kernel/device-drivers/zram/zram03.c static void print(char *string) · line 189

Quoted 10 lines
testcases/kernel/device-drivers/zram/zram03.c +0 -6
 {
 	print("initstate");
-	print("compr_data_size");
-	print("orig_data_size");
 	print("disksize");
-	print("mem_used_total");
-	print("num_reads");
-	print("num_writes");
-	print("zero_pages");
 }

Is this against the Linux kernel code or some 3-rd party code?

	-ss
author
#2 lore raw

PATCH 1/1 zram03: drop obsolete sysfs interfaces

Quoted 12 lines · Sergey Senozhatsky
Quoted 12 lines
  testcases/kernel/device-drivers/zram/zram03.c | 6 ------
  1 file changed, 6 deletions(-)
testcases/kernel/device-drivers/zram/zram03.c +0 -1
index 3f7ab4e..f2c166c 100644
@@ -185,11 +185,5 @@ static void print(char *string)
  static void dump_info(void)
  {
  	print("initstate");
-	print("compr_data_size");
Quoted 8 lines

testcases/kernel/device-drivers/zram/zram03.c static void print(char *string) · line 189

Quoted 7 lines
testcases/kernel/device-drivers/zram/zram03.c +0 -5
-	print("orig_data_size");
  	print("disksize");
-	print("mem_used_total");
-	print("num_reads");
-	print("num_writes");
-	print("zero_pages");
  }

Is this against the Linux kernel code or some 3-rd party code?

zram03 is a LTP test case.

Yang

Quoted 2 lines
	-ss