aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2007-12-12 09:24:08 -0600
committerSteven Whitehouse <swhiteho@redhat.com>2008-01-25 08:14:53 +0000
commitb3513fca7e41965d85125c9770ce5f8fd4ff509a (patch)
tree3747019335ccd0f91bf30bd4a85609db455d7214 /fs/gfs2
parent[GFS2] Function meta_read optimization (diff)
downloadlinux-dev-b3513fca7e41965d85125c9770ce5f8fd4ff509a.tar.xz
linux-dev-b3513fca7e41965d85125c9770ce5f8fd4ff509a.zip
[GFS2] Incremental patch to fix compiler warning
Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/rgrp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
index d7ff9cf6653f..68c4bf363c46 100644
--- a/fs/gfs2/rgrp.c
+++ b/fs/gfs2/rgrp.c
@@ -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
@@ -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;