summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2014-05-22 10:54:40 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2014-06-03 18:50:38 +1000
commitf3ff66411de4b375c3b8a94f0fc59542528f3007 (patch)
tree8e7e1081d6eca33b7fba09591804e558fa5a8c2c /mm
parent6e83f75338a972a88f3b6a8715a8bf4d60625657 (diff)
memcg-deprecate-memoryforce_empty-knob-fix
- s/pr_info/pr_info_once/ - fix garbled printk text Cc: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Michal Hocko <mhocko@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/memcontrol.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index ef5a01deb55..15bda8133ff 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -4811,10 +4811,10 @@ static ssize_t mem_cgroup_force_empty_write(struct kernfs_open_file *of,
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) ?: nbytes;
}