lkml.org 
[lkml]   [2006]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] trivial: unneeded zero adding to per_cpu_pages->count
On 2/21/06, nkml00 <nkml00@gmail.com> wrote:
> Unneeded addition (of zero). Compiler could optimize this, but "looks" illogical
>

Sorry, patch was not in patch -p1 format.

--- l1/mm/page_alloc.c-orig 2006-02-21 12:03:52.000000000 -0800
+++ l2/mm/page_alloc.c 2006-02-21 12:49:45.000000000 -0800
@@ -774,7 +774,7 @@ again:
pcp = &zone_pcp(zone, cpu)->pcp[cold];
local_irq_save(flags);
if (!pcp->count) {
- pcp->count += rmqueue_bulk(zone, 0,
+ pcp->count = rmqueue_bulk(zone, 0,
pcp->batch, &pcp->list);
if (unlikely(!pcp->count))
goto failed;
Signed-off-by: nkml00 <nkml00@gmail.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-21 11:41    [W:0.466 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site