diff options
author | Bob Peterson <rpeterso@redhat.com> | 2007-12-12 18:52:13 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2008-01-25 03:15:37 -0500 |
commit | fa3742fa8545df20e54aa0953a1873cca3a9bd92 (patch) | |
tree | 12a52441aa753408af536919583ad3cfe59848ec /fs/gfs2 | |
parent | c3f60b6e3a7667f78a63b15cf09655ecfca757fc (diff) |
[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>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/ops_fstype.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index 79f9bb365f10..5537798af381 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c | |||
@@ -332,7 +332,7 @@ static int map_journal_extents(struct gfs2_sbd *sdp) | |||
332 | INIT_LIST_HEAD(&jd->extent_list); | 332 | INIT_LIST_HEAD(&jd->extent_list); |
333 | prev_db = 0; | 333 | prev_db = 0; |
334 | 334 | ||
335 | for (lb = 0; lb < ip->i_di.di_size / sdp->sd_sb.sb_bsize; lb++) { | 335 | for (lb = 0; lb < ip->i_di.di_size >> sdp->sd_sb.sb_bsize_shift; lb++) { |
336 | bh.b_state = 0; | 336 | bh.b_state = 0; |
337 | bh.b_blocknr = 0; | 337 | bh.b_blocknr = 0; |
338 | bh.b_size = 1 << ip->i_inode.i_blkbits; | 338 | bh.b_size = 1 << ip->i_inode.i_blkbits; |