Skip to contentSkip to conversation

ksm: fix ksm06 warning

PATCH New Li Wang 1 participant 2 messages Oct 10, 2017 – Nov 10, 2017

lore
Share & tools
lore

Li Wang

author
#0 lore raw

PATCH 1/1 ksm: fix ksm06 warning

tst_test.c:934: INFO: Timeout per run is 0h 05m 00s
ksm06.c:68: CONF: no merge_across_nodes sysfs knob
safe_file_ops.c:256: WARN: Failed to close FILE '/sys/kernel/mm/ksm/max_page_sharing' at mem.c:252

---
 testcases/kernel/mem/ksm/ksm06.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
testcases/kernel/mem/ksm/ksm06.c +2 -2
index 334a048..e6af6e0 100644
@@ -64,11 +64,11 @@ static void test_ksm(void)
 
 static void setup(void)
 {
+	save_max_page_sharing();
+
 	if (access(PATH_KSM "merge_across_nodes", F_OK) == -1)
 		tst_brk(TCONF, "no merge_across_nodes sysfs knob");
 
-	save_max_page_sharing();
-
 	if (!is_numa(NULL, NH_MEMS, 2))
 		tst_brk(TCONF, "The case needs a NUMA system.");
 
Signature · 1 line
2.9.3