mm/huge_memory.c: split_huge_pages_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE
Subsystems (2)
[email protected]
maintainerPATCH 133/158 mm/huge_memory.c: split_huge_pages_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE
From: zhong jiang <[email protected]>
Subject: mm/huge_memory.c: split_huge_pages_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE
split_huge_pages_fops is used for debugfs file. hence, it is more clear to use DEFINE_DEBUGFS_ATTRIBUTE.
Signed-off-by zhong jiang <[email protected]>
Reviewed-by Andrew Morton <[email protected]>
Cc Kirill A. Shutemov <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Hugh Dickins <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/huge_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/huge_memory.c renamed from mm/huge_memory.c~mm-split_huge_pages_fops-should-be-defined-with-define_debugfs_attribute +1 -1
@@ -3003,7 +3003,7 @@ next: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 )
_