Skip to contentSkip to conversation

selftests-damon-debugfs_duplicate_context_creation-hide-errors-from-expected-file-write-failures.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Nov 7, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: selftests/damon/debugfs_duplicate_context_creation: hide errors from expected file write failures
has been removed from the -mm tree. Its filename was
selftests-damon-debugfs_duplicate_context_creation-hide-errors-from-expected-file-write-failures.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/debugfs_duplicate_context_creation: hide errors from expected file write failures
Date: Mon, 28 Oct 2024 16:30:56 -0700

debugfs_duplicate_context_creation.sh does an invalid file write to ensure it fails. Check of the failure is sufficient, so the error message from the failure only makes the output unnecessarily noisy. Hide it.

Fixes ade38b8ca5ce ("selftest/damon: add a test for duplicate context dirs creation")
Cc Andrew Paniakin <[email protected]>
Cc Brendan Higgins <[email protected]>
Cc David Gow <[email protected]>
Cc Shuah Khan <[email protected]>

---

 tools/testing/selftests/damon/debugfs_duplicate_context_creation.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/damon/debugfs_duplicate_context_creation.sh renamed from tools/testing/selftests/damon/debugfs_duplicate_context_creation.sh~selftests-damon-debugfs_duplicate_context_creation-hide-errors-from-expected-file-write-failures +1 -1
@@ -12,7 +12,7 @@ then
 	exit 1
 fi
 
-if echo foo > "$DBGFS/mk_contexts"
+if echo foo > "$DBGFS/mk_contexts" 2> /dev/null
 then
 	echo "duplicate context creation success"
 	exit 1

_

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

docs-mm-damon-recommend-academic-papers-to-read-and-or-cite.patch maintainers-memory-management-add-document-files-for-mm.patch