]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
memcg-deprecate-memoryforce_empty-knob-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 26 Jun 2014 00:43:22 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 27 Jun 2014 04:21:52 +0000 (14:21 +1000)
- 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>
Documentation/cgroups/memory.txt
mm/memcontrol.c

index e2a847c4943c954898c04482ca25b2d5ab1ce27c..3d9e4d353dad4c9a6907204c9fc6bc144715b032 100644 (file)
@@ -474,7 +474,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.
 
index a7b2a316468d706a58ce8940c9f4f7a1700a7d8d..d1b3116877694e9721fceb5ce08d7892d37416a1 100644 (file)
@@ -4135,10 +4135,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;
 }