[GFS2] Minor correction

This is a small correction to my previously posted patch1.
It just changes a divide to a shift.  It's faster and doesn't
introduce odd dependencies on 32-bit compiles.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
Bob Peterson 2007-12-12 17:52:13 -06:00 committed by Steven Whitehouse
parent c3f60b6e3a
commit fa3742fa85
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ static int map_journal_extents(struct gfs2_sbd *sdp)
INIT_LIST_HEAD(&jd->extent_list); INIT_LIST_HEAD(&jd->extent_list);
prev_db = 0; prev_db = 0;
for (lb = 0; lb < ip->i_di.di_size / sdp->sd_sb.sb_bsize; lb++) { for (lb = 0; lb < ip->i_di.di_size >> sdp->sd_sb.sb_bsize_shift; lb++) {
bh.b_state = 0; bh.b_state = 0;
bh.b_blocknr = 0; bh.b_blocknr = 0;
bh.b_size = 1 << ip->i_inode.i_blkbits; bh.b_size = 1 << ip->i_inode.i_blkbits;