Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144014
b: refs/heads/master
c: d8bd504
h: refs/heads/master
v: v3
  • Loading branch information
Steven Whitehouse committed Apr 23, 2009
1 parent 547a2c0 commit 5d26f73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 952043ac12a117d8e94bddd9088338d7ad20ca7d
refs/heads/master: d8bd504ab800c8e9aadb983914a33e7166320bec
3 changes: 1 addition & 2 deletions trunk/fs/gfs2/rgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ static u32 gfs2_bitfit(const u8 *buf, const unsigned int len,
if (tmp == 0)
return BFITNOENT;
ptr--;
bit = fls64(tmp);
bit--; /* fls64 always adds one to the bit count */
bit = __ffs64(tmp);
bit /= 2; /* two bits per entry in the bitmap */
return (((const unsigned char *)ptr - buf) * GFS2_NBBY) + bit;
}
Expand Down

0 comments on commit 5d26f73

Please sign in to comment.