[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1308643849-3325-3-git-send-email-amwang@redhat.com>
Date: Tue, 21 Jun 2011 16:10:44 +0800
From: Amerigo Wang <amwang@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: akpm@...ux-foundation.org, Amerigo Wang <amwang@...hat.com>,
Andrea Arcangeli <aarcange@...hat.com>,
Rik van Riel <riel@...hat.com>,
Johannes Weiner <jweiner@...hat.com>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
linux-mm@...ck.org
Subject: [PATCH 3/4] mm: improve THP printk messages
As Andrea suggested, use "THP:" prefix to avoid
being confused with hugetlb.
Signed-off-by: WANG Cong <amwang@...hat.com>
---
mm/huge_memory.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index 126c96b..f9e720c 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -506,7 +506,7 @@ static int __init hugepage_init(void)
if (no_hugepage_init) {
err = 0;
transparent_hugepage_flags = 0;
- printk(KERN_INFO "hugepage: totally disabled\n");
+ printk(KERN_INFO "THP: totally disabled\n");
goto out;
}
@@ -514,19 +514,19 @@ static int __init hugepage_init(void)
err = -ENOMEM;
hugepage_kobj = kobject_create_and_add("transparent_hugepage", mm_kobj);
if (unlikely(!hugepage_kobj)) {
- printk(KERN_ERR "hugepage: failed kobject create\n");
+ printk(KERN_ERR "THP: failed kobject create\n");
goto out;
}
err = sysfs_create_group(hugepage_kobj, &hugepage_attr_group);
if (err) {
- printk(KERN_ERR "hugepage: failed register hugeage group\n");
+ printk(KERN_ERR "THP: failed register hugeage group\n");
goto out;
}
err = sysfs_create_group(hugepage_kobj, &khugepaged_attr_group);
if (err) {
- printk(KERN_ERR "hugepage: failed register hugeage group\n");
+ printk(KERN_ERR "THP: failed register hugeage group\n");
goto out;
}
#endif
--
1.7.4.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists