| To: | linux-xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] Fix xfs_lowbit64 |
| From: | Andi Kleen <ak@xxxxxx> |
| Date: | Fri, 22 Aug 2003 21:57:51 +0200 |
| Sender: | linux-xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4i |
ffs(0) returns -1, not 0.
-Andi
--- linux-2.6.0test3/fs/xfs/xfs_bit.c-o 2003-05-27 03:00:41.000000000 +0200
+++ linux-2.6.0test3/fs/xfs/xfs_bit.c 2003-08-22 21:54:53.000000000 +0200
@@ -156,7 +156,7 @@
{
int n;
n = ffs((unsigned)v);
- if (n == 0) {
+ if (n < 0) {
n = ffs(v >> 32);
if (n >= 0)
n+=32;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: problems compiling 2.4.20 + xfs 1.3.0pre6, Russell Cattelan |
|---|---|
| Next by Date: | [PATCH] One more bugfix for xfs_lowbit64, Andi Kleen |
| Previous by Thread: | [xfs-1.3] compile problem, FD Cami |
| Next by Thread: | [PATCH] One more bugfix for xfs_lowbit64, Andi Kleen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |