]> err.no Git - linux-2.6/commitdiff
[PATCH] ocfs2: fix thinko in ocfs2_backup_super_blkno()
authorMark Fasheh <mark.fasheh@oracle.com>
Fri, 26 Jan 2007 18:46:59 +0000 (10:46 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 26 Jan 2007 22:53:27 +0000 (14:53 -0800)
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 <mark.fasheh@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/ocfs2_fs.h

index c99e9058c1988940451d7faf21d24818c83e71cc..e61e218f5e0b791e51f351f89a8a1afb9c4fc0a2 100644 (file)
@@ -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;
        }