]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/zram: Skip max_comp_streams interface on newer kernel
authorYang Xu <xuyang2018.jy@fujitsu.com>
Thu, 27 Jan 2022 09:11:35 +0000 (17:11 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 27 Jan 2022 17:58:49 +0000 (10:58 -0700)
commit9ff93189b551c9d2dc3757735ba9814ebdc946f7
treecb4923d8a4d993189d6a7b3a9d2208b73910a5c9
parent0641029f08b84006fc6bbafc80c8dc053b803dca
selftests/zram: Skip max_comp_streams interface on newer kernel

Since commit 1bc51afba701 ("zram: remove max_comp_streams internals"), zram
has switched to per-cpu streams. Even kernel still keep this interface for
some reasons, but writing to max_comp_stream doesn't take any effect. So
skip it on newer kernel ie 4.7.

The code that comparing kernel version is from xfstests testsuite ext4/053.

Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/zram/zram_lib.sh