From 2423e4fd89671b41f1ca3edee066da419c00a46a Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 14 May 2014 10:02:14 +1000 Subject: [PATCH] memcg-deprecate-memoryforce_empty-knob-fix - s/pr_info/pr_info_once/ - fix garbled printk text Cc: Johannes Weiner Cc: Michal Hocko Signed-off-by: Andrew Morton --- Documentation/cgroups/memory.txt | 2 +- mm/memcontrol.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt index cb6ff3fc0858..8026bb70a7b8 100644 --- a/Documentation/cgroups/memory.txt +++ b/Documentation/cgroups/memory.txt @@ -482,7 +482,7 @@ About use_hierarchy, see Section 6. memory.kmem.usage_in_bytes == memory.usage_in_bytes. Please note that this knob is considered deprecated and will be removed - in future. + in the future. About use_hierarchy, see Section 6. diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 1409fcbf8b4b..97cd630c6618 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -4799,10 +4799,10 @@ static int mem_cgroup_force_empty_write(struct cgroup_subsys_state *css, if (mem_cgroup_is_root(memcg)) return -EINVAL; - pr_info("%s (%d): memory.force_empty is deprecated and will be removed.", - current->comm, task_pid_nr(current)); - pr_cont(" Let us know if you know if it needed in your usecase at"); - pr_cont(" linux-mm@kvack.org\n"); + pr_info_once("%s (%d): memory.force_empty is deprecated and will be " + "removed. Let us know if it is needed in your usecase at " + "linux-mm@kvack.org\n", + current->comm, task_pid_nr(current)); return mem_cgroup_force_empty(memcg); } -- 2.39.5