From: nkml00 <nkml00@gmail.com>
To: trivial@kernel.org
Cc: linux-kernel@vger.kernel.org, nkml00@gmail.com
Subject: [PATCH] trivial: unneeded zero adding to per_cpu_pages->count
Date: Tue, 21 Feb 2006 15:45:18 +0530 [thread overview]
Message-ID: <5b7f8a0d0602210215p60039c6fp5f7c7f94daed891b@mail.gmail.com> (raw)
Unneeded addition (of zero). Compiler could optimize this, but "looks" illogical
--- page_alloc.c-orig 2006-02-21 12:03:52.000000000 -0800
+++ 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>
next reply other threads:[~2006-02-21 10:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-21 10:15 nkml00 [this message]
2006-02-21 10:38 ` nkml00
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5b7f8a0d0602210215p60039c6fp5f7c7f94daed891b@mail.gmail.com \
--to=nkml00@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®