From: Dipankar Sarma <dipankar@gamebox.net>
To: Petr Vandrovec <VANDROVE@vc.cvut.cz>
Cc: Rusty Russell <rusty@rustcorp.com.au>,
Linus Torvalds <torvalds@transmeta.com>,
linux-kernel@vger.kernel.org
Subject: Re: [TRIVIAL] Re: UP went into unexpected trashing
Date: Sat, 9 Nov 2002 01:23:36 +0530 [thread overview]
Message-ID: <20021109012336.A25293@dikhow> (raw)
In-Reply-To: <6EF6764388E@vcnet.vc.cvut.cz>; from VANDROVE@vc.cvut.cz on Fri, Nov 08, 2002 at 04:40:13PM +0100
On Fri, Nov 08, 2002 at 04:40:13PM +0100, Petr Vandrovec wrote:
> On 8 Nov 02 at 19:33, Rusty Trivial Russell wrote:
>
> So maybe callers should just treat any return value >= size as "not found",
> leaving older smaller code in place.
Or add a check in there. I can't figure out a way to avoid the extra
conditional branch anyway :)
Thanks
Dipankar
diff -urN linux-2.5.46-base/include/asm-i386/bitops.h linux-2.5.46-misc/include/asm-i386/bitops.h
--- linux-2.5.46-base/include/asm-i386/bitops.h Sat Sep 28 03:20:22 2002
+++ linux-2.5.46-misc/include/asm-i386/bitops.h Sat Nov 9 01:08:56 2002
@@ -317,7 +317,7 @@
"addl %%edi,%%eax"
:"=a" (res), "=&c" (d0), "=&D" (d1)
:"1" ((size + 31) >> 5), "2" (addr), "b" (addr));
- return res;
+ return (size > res) ? res : size;
}
/**
next prev parent reply other threads:[~2002-11-08 19:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-08 14:35 Petr Vandrovec
2002-11-08 19:53 ` Dipankar Sarma [this message]
2002-11-08 20:10 ` Linus Torvalds
2002-11-09 3:16 ` Rusty Russell
2002-11-09 4:40 ` Linus Torvalds
2002-11-10 3:09 ` Rusty Russell
-- strict thread matches above, loose matches on Subject: below --
2002-11-08 8:33 Rusty Trivial Russell
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=20021109012336.A25293@dikhow \
--to=dipankar@gamebox.net \
--cc=VANDROVE@vc.cvut.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
--cc=torvalds@transmeta.com \
/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®