Commit 2c79737a authored by Jeremy Eder's avatar Jeremy Eder Committed by Linus Torvalds

mm: clean up transparent hugepage sysfs error messages

Clarify error messages and correct a few typos in the transparent hugepage
sysfs init code.
Signed-off-by: default avatarJeremy Eder <jeder@redhat.com>
Acked-by: default avatarRafael Aquini <aquini@redhat.com>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bffdd661
...@@ -574,19 +574,19 @@ static int __init hugepage_init_sysfs(struct kobject **hugepage_kobj) ...@@ -574,19 +574,19 @@ static int __init hugepage_init_sysfs(struct kobject **hugepage_kobj)
*hugepage_kobj = kobject_create_and_add("transparent_hugepage", mm_kobj); *hugepage_kobj = kobject_create_and_add("transparent_hugepage", mm_kobj);
if (unlikely(!*hugepage_kobj)) { if (unlikely(!*hugepage_kobj)) {
printk(KERN_ERR "hugepage: failed kobject create\n"); printk(KERN_ERR "hugepage: failed to create transparent hugepage kobject\n");
return -ENOMEM; return -ENOMEM;
} }
err = sysfs_create_group(*hugepage_kobj, &hugepage_attr_group); err = sysfs_create_group(*hugepage_kobj, &hugepage_attr_group);
if (err) { if (err) {
printk(KERN_ERR "hugepage: failed register hugeage group\n"); printk(KERN_ERR "hugepage: failed to register transparent hugepage group\n");
goto delete_obj; goto delete_obj;
} }
err = sysfs_create_group(*hugepage_kobj, &khugepaged_attr_group); err = sysfs_create_group(*hugepage_kobj, &khugepaged_attr_group);
if (err) { if (err) {
printk(KERN_ERR "hugepage: failed register hugeage group\n"); printk(KERN_ERR "hugepage: failed to register transparent hugepage group\n");
goto remove_hp_group; goto remove_hp_group;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment