From: Chuck Ebbert <76306.1226@compuserve.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Cc: Andrea Arcangeli <andrea@novell.com>, Andi Kleen <ak@suse.de>,
Andrew Morton <akpm@osdl.org>
Subject: Dropped patch: mm/mempolicy.c:sp_lookup()
Date: Mon, 15 Nov 2004 23:15:51 -0500 [thread overview]
Message-ID: <200411152318_MC3-1-8EBD-DEEE@compuserve.com> (raw)
Andrea posted this one-liner a while ago as part of a larger patch. He said
it fixed return of the wrong policy in some conditions. Was this a valid fix?
--- linux-2.6.10-rc2/mm/mempolicy.c 2004-11-11 03:23:03.000000000 -0500
+++ edited/mm/mempolicy.c 2004-11-15 22:09:41.387881104 -0500
@@ -902,7 +902,7 @@ sp_lookup(struct shared_policy *sp, unsi
struct sp_node *p = rb_entry(n, struct sp_node, nd);
if (start >= p->end) {
n = n->rb_right;
- } else if (end < p->start) {
+ } else if (end <= p->start) {
n = n->rb_left;
} else {
break;
--Chuck Ebbert 15-Nov-04 22:20:16
next reply other threads:[~2004-11-16 4:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-16 4:15 Chuck Ebbert [this message]
2004-11-17 1:00 ` Dropped patch: mm/mempolicy.c:sp_lookup() Andi Kleen
-- strict thread matches above, loose matches on Subject: below --
2004-11-17 3:54 Chuck Ebbert
2004-11-17 12:08 ` Andi Kleen
2004-11-17 19:13 ` Andrew Morton
2004-11-17 20:06 ` Hugh Dickins
2004-11-17 20:21 ` Andrew Morton
2004-11-17 20:29 ` Andrew Morton
2004-11-18 5:05 ` Andi Kleen
2004-11-18 3:08 ` Andrea Arcangeli
2004-11-18 3:08 ` Andrea Arcangeli
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=200411152318_MC3-1-8EBD-DEEE@compuserve.com \
--to=76306.1226@compuserve.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=andrea@novell.com \
--cc=linux-kernel@vger.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