Skip to contentSkip to conversation

mm-convert-to-define_debugfs_attribute.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 11, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/memory.c: convert to DEFINE_DEBUGFS_ATTRIBUTE
has been removed from the -mm tree. Its filename was
mm-convert-to-define_debugfs_attribute.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Yevgen Pronenko <[email protected]>
Subject: mm/memory.c: convert to DEFINE_DEBUGFS_ATTRIBUTE

The preferred strategy to define debugfs attributes is to use the DEFINE_DEBUGFS_ATTRIBUTE() macro and to use debugfs_create_file_unsafe().

---

 mm/memory.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/memory.c renamed from mm/memory.c~mm-convert-to-define_debugfs_attribute +2 -2
diff -puN mm/memory.c~mm-convert-to-define_debugfs_attribute mm/memory.c
@@ -3262,14 +3262,14 @@ static int fault_around_bytes_set(void *
 		fault_around_bytes = PAGE_SIZE; /* rounddown_pow_of_two(0) is undefined */
 	return 0;
 }
-DEFINE_SIMPLE_ATTRIBUTE(fault_around_bytes_fops,
+DEFINE_DEBUGFS_ATTRIBUTE(fault_around_bytes_fops,
 		fault_around_bytes_get, fault_around_bytes_set, "%llu\n");
 
 static int __init fault_around_debugfs(void)
 {
 	void *ret;
 
-	ret = debugfs_create_file("fault_around_bytes", 0644, NULL, NULL,
+	ret = debugfs_create_file_unsafe("fault_around_bytes", 0644, NULL, NULL,
 			&fault_around_bytes_fops);
 	if (!ret)
 		pr_warn("Failed to create fault_around_bytes in debugfs");

_

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