Skip to content

Commit

Permalink
[PATCH] ocfs2: fix thinko in ocfs2_backup_super_blkno()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Fasheh authored and Linus Torvalds committed Jan 26, 2007
1 parent bb38594 commit a8a75a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/ocfs2_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a8a75a2

Please sign in to comment.