Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76051
b: refs/heads/master
c: b3513fc
h: refs/heads/master
i:
  76049: 444a64c
  76047: 7adcd5b
v: v3
  • Loading branch information
Bob Peterson authored and Steven Whitehouse committed Jan 25, 2008
1 parent c3dac90 commit 66f2e4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 15c7cee7995a9013f1b2f31a15b70e1d2e8ae501
refs/heads/master: b3513fca7e41965d85125c9770ce5f8fd4ff509a
7 changes: 2 additions & 5 deletions trunk/fs/gfs2/rgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,9 @@ static u32 gfs2_bitfit(unsigned char *buffer, unsigned int buflen, u32 goal,
u32 blk = goal;
unsigned int bit, bitlong;
unsigned long *plong, plong55;
static int c = 0;

byte = buffer + (goal / GFS2_NBBY);
plong = buffer + (goal / GFS2_NBBY);
plong = (unsigned long *)(buffer + (goal / GFS2_NBBY));
bit = (goal % GFS2_NBBY) * GFS2_BIT_SIZE;
bitlong = bit;
#if BITS_PER_LONG == 32
Expand All @@ -152,10 +151,8 @@ static u32 gfs2_bitfit(unsigned char *buffer, unsigned int buflen, u32 goal,
blk += sizeof(unsigned long) * GFS2_NBBY;
continue;
}
if (((*byte >> bit) & GFS2_BIT_MASK) == old_state) {
c++;
if (((*byte >> bit) & GFS2_BIT_MASK) == old_state)
return blk;
}
bit += GFS2_BIT_SIZE;
if (bit >= 8) {
bit = 0;
Expand Down

0 comments on commit 66f2e4c

Please sign in to comment.