zram max_comp_streams device attribute has been deprecated
and defunct since 2016 (when zram switched to per-CPU
compression stream) and it was eventually removed a while
ago.

Drop the corresponding selftests.

Signed-off-by: Sergey Senozhatsky <[email protected]>
---
 tools/testing/selftests/zram/zram01.sh   |  2 --
 tools/testing/selftests/zram/zram02.sh   |  2 --
 tools/testing/selftests/zram/zram_lib.sh | 29 ------------------------
 3 files changed, 33 deletions(-)

diff --git a/tools/testing/selftests/zram/zram01.sh 
b/tools/testing/selftests/zram/zram01.sh
index 8f4affe34f3e..638ecc9afaa0 100755
--- a/tools/testing/selftests/zram/zram01.sh
+++ b/tools/testing/selftests/zram/zram01.sh
@@ -17,7 +17,6 @@ ERR_CODE=0
 dev_num=1
 # This is a list of parameters for zram devices.
 # Number of items must be equal to 'dev_num' parameter.
-zram_max_streams="2"
 
 # The zram sysfs node 'disksize' value can be either in bytes,
 # or you can use mem suffixes. But in some old kernels, mem
@@ -58,7 +57,6 @@ zram_fill_fs()
 
 check_prereqs
 zram_load
-zram_max_streams
 zram_compress_alg
 zram_set_disksizes
 zram_set_memlimit
diff --git a/tools/testing/selftests/zram/zram02.sh 
b/tools/testing/selftests/zram/zram02.sh
index 2418b0c4ed13..e0a408160903 100755
--- a/tools/testing/selftests/zram/zram02.sh
+++ b/tools/testing/selftests/zram/zram02.sh
@@ -16,7 +16,6 @@ ERR_CODE=0
 dev_num=1
 # This is a list of parameters for zram devices.
 # Number of items must be equal to 'dev_num' parameter.
-zram_max_streams="2"
 
 # The zram sysfs node 'disksize' value can be either in bytes,
 # or you can use mem suffixes. But in some old kernels, mem
@@ -30,7 +29,6 @@ zram_mem_limits="1M"
 
 check_prereqs
 zram_load
-zram_max_streams
 zram_set_disksizes
 zram_set_memlimit
 zram_makeswap
diff --git a/tools/testing/selftests/zram/zram_lib.sh 
b/tools/testing/selftests/zram/zram_lib.sh
index 21ec1966de76..4ab8ac018a0c 100755
--- a/tools/testing/selftests/zram/zram_lib.sh
+++ b/tools/testing/selftests/zram/zram_lib.sh
@@ -116,35 +116,6 @@ zram_load()
        echo "all zram devices (/dev/zram0~$dev_end) successfully created"
 }
 
-zram_max_streams()
-{
-       echo "set max_comp_streams to zram device(s)"
-
-       kernel_gte 4.7
-       if [ $? -eq 0 ]; then
-               echo "The device attribute max_comp_streams was"\
-                              "deprecated in 4.7"
-               return 0
-       fi
-
-       local i=$dev_start
-       for max_s in $zram_max_streams; do
-               local sys_path="/sys/block/zram${i}/max_comp_streams"
-               echo $max_s > $sys_path || \
-                       echo "FAIL failed to set '$max_s' to $sys_path"
-               sleep 1
-               local max_streams=$(cat $sys_path)
-
-               [ "$max_s" -ne "$max_streams" ] && \
-                       echo "FAIL can't set max_streams '$max_s', get 
$max_stream"
-
-               i=$(($i + 1))
-               echo "$sys_path = '$max_streams'"
-       done
-
-       echo "zram max streams: OK"
-}
-
 zram_compress_alg()
 {
        echo "test that we can set compression algorithm"
-- 
2.53.0.rc1.217.geba53bf80e-goog


Reply via email to