Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fa3742fa8545df20e54aa0953a1873cca3a9bd92
Commit:     fa3742fa8545df20e54aa0953a1873cca3a9bd92
Parent:     c3f60b6e3a7667f78a63b15cf09655ecfca757fc
Author:     Bob Peterson <[EMAIL PROTECTED]>
AuthorDate: Wed Dec 12 17:52:13 2007 -0600
Committer:  Steven Whitehouse <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 08:15:37 2008 +0000

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Steven Whitehouse <[EMAIL PROTECTED]>
---
 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 79f9bb3..5537798 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)
        INIT_LIST_HEAD(&jd->extent_list);
        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_blocknr = 0;
                bh.b_size = 1 << ip->i_inode.i_blkbits;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to