]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
percpu: fix a mismatch between code and comment
authorNamhyung Kim <namhyung@gmail.com>
Wed, 11 Aug 2010 02:19:19 +0000 (11:19 +0900)
committerTejun Heo <tj@kernel.org>
Fri, 27 Aug 2010 09:36:19 +0000 (11:36 +0200)
When pcpu_build_alloc_info() searches best_upa value, it ignores current value
if the number of waste units exceeds 1/3 of the number of total cpus. But the
comment on the code says that it will ignore if wastage is over 25%.
Modify the comment.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/percpu.c

index a1830d8e33188a25b1d4fc9c8c22ea282577be20..58c572b18b07ffbca4e2120d4e1600705db5fc0e 100644 (file)
@@ -1164,7 +1164,7 @@ static struct pcpu_alloc_info * __init pcpu_build_alloc_info(
                }
 
                /*
-                * Don't accept if wastage is over 25%.  The
+                * Don't accept if wastage is over 1/3.  The
                 * greater-than comparison ensures upa==1 always
                 * passes the following check.
                 */