Skip to contentSkip to conversation

selftests-damon-_damon_sysfs-check-errors-from-nr_schemes-file-reads.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message May 11, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: selftests/damon/_damon_sysfs: check errors from nr_schemes file reads
has been removed from the -mm tree. Its filename was
selftests-damon-_damon_sysfs-check-errors-from-nr_schemes-file-reads.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: SeongJae Park <[email protected]>
Subject: selftests/damon/_damon_sysfs: check errors from nr_schemes file reads
Date: Fri, 3 May 2024 11:03:10 -0700

DAMON context staging method in _damon_sysfs.py is not checking the returned error from nr_schemes file read. Check it.

Fixes f5f0e5a2bef9 ("selftests/damon/_damon_sysfs: implement kdamonds start function")
Cc Jonathan Corbet <[email protected]>
Cc Shuah Khan <[email protected]>

---

 tools/testing/selftests/damon/_damon_sysfs.py |    2 ++
 1 file changed, 2 insertions(+)
tools/testing/selftests/damon/_damon_sysfs.py renamed from tools/testing/selftests/damon/_damon_sysfs.py~selftests-damon-_damon_sysfs-check-errors-from-nr_schemes-file-reads +2 -0
@@ -341,6 +341,8 @@ class DamonCtx:
         nr_schemes_file = os.path.join(
                 self.sysfs_dir(), 'schemes', 'nr_schemes')
         content, err = read_file(nr_schemes_file)
+        if err is not None:
+            return err
         if int(content) != len(self.schemes):
             err = write_file(nr_schemes_file, '%d' % len(self.schemes))
             if err != None:

_

Patches currently in -mm which might be from [email protected] are