Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
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
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;