linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: split_huge_pages_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE
@ 2019-10-29 11:14 zhong jiang
  0 siblings, 0 replies; only message in thread
From: zhong jiang @ 2019-10-29 11:14 UTC (permalink / raw)
  To: akpm; +Cc: kirill.shutemov, mhocko, vbabka, hughd, zhongjiang, linux-mm

split_huge_pages_fops is used for debugfs file. hence, it is more clear to
use DEFINE_DEBUGFS_ATTRIBUTE.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
---
 mm/huge_memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index b68c13e..f720287 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -3001,7 +3001,7 @@ static int split_huge_pages_set(void *data, u64 val)
 
 	return 0;
 }
-DEFINE_SIMPLE_ATTRIBUTE(split_huge_pages_fops, NULL, split_huge_pages_set,
+DEFINE_DEBUGFS_ATTRIBUTE(split_huge_pages_fops, NULL, split_huge_pages_set,
 		"%llu\n");
 
 static int __init split_huge_pages_debugfs(void)
-- 
1.7.12.4



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-29 11:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-29 11:14 [PATCH] mm: split_huge_pages_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE zhong jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox