From: Mark Fasheh Date: Fri, 26 Jan 2007 18:46:59 +0000 (-0800) Subject: [PATCH] ocfs2: fix thinko in ocfs2_backup_super_blkno() X-Git-Tag: v2.6.20-rc7~54 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=a8a75a20e9a854685ac3e7af2e0e32f9b0be436b;p=~shefty%2Frdma-dev.git [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 Signed-off-by: Linus Torvalds --- diff --git a/fs/ocfs2/ocfs2_fs.h b/fs/ocfs2/ocfs2_fs.h index c99e9058c19..e61e218f5e0 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; }