jbd: fix oops in jbd_journal_init_inode() on corrupted fs
authorJan Kara <jack@suse.cz>
Thu, 2 Apr 2009 23:57:13 +0000 (16:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Apr 2009 02:04:52 +0000 (19:04 -0700)
commitecca9af0a98fdacfcdc73979d08481d7b27ff986
tree41aa40eedd27799b2fa021138173c1adcabe89a5
parent039fd8ce6258e01ec29f1637f9bf1868dd877c55
jbd: fix oops in jbd_journal_init_inode() on corrupted fs

On 32-bit system with CONFIG_LBD getblk can fail because provided block
number is too big. Make JBD gracefully handle that.

Signed-off-by: Jan Kara <jack@suse.cz>
Cc: <dmaciejak@fortinet.com>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/jbd/journal.c