Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a8a75a20e9a854685ac3e7af2e0e32f9b0be436b
Commit:     a8a75a20e9a854685ac3e7af2e0e32f9b0be436b
Parent:     bb385942967fb7e0ff8cb8fea7a32561ef609a1a
Author:     Mark Fasheh <[EMAIL PROTECTED]>
AuthorDate: Fri Jan 26 10:46:59 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Fri Jan 26 14:53:27 2007 -0800

    [PATCH] ocfs2: fix thinko in ocfs2_backup_super_blkno()
    
    Fix a bug which was introduced when I synced up ocfs2_fs.h with ocfs2-tools.
    We can't do u64/u32 in kernel.
    
    Signed-off-by: Mark Fasheh <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 fs/ocfs2/ocfs2_fs.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ocfs2/ocfs2_fs.h b/fs/ocfs2/ocfs2_fs.h
index c99e905..e61e218 100644
--- a/fs/ocfs2/ocfs2_fs.h
+++ b/fs/ocfs2/ocfs2_fs.h
@@ -587,7 +587,7 @@ static inline u64 ocfs2_backup_super_blkno(struct 
super_block *sb, int index)
 
        if (index >= 0 && index < OCFS2_MAX_BACKUP_SUPERBLOCKS) {
                offset <<= (2 * index);
-               offset /= sb->s_blocksize;
+               offset >>= sb->s_blocksize_bits;
                return offset;
        }
 
-
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