jbd: Fail to load a journal if it is too short
authorJan Kara <jack@suse.cz>
Wed, 15 Jul 2009 18:36:08 +0000 (20:36 +0200)
committerJan Kara <jack@suse.cz>
Wed, 15 Jul 2009 19:26:23 +0000 (21:26 +0200)
commit7447a668a3860b66b3c9db86fdea91e355ba59ac
treef27e2c1df19e6558bce053e8ffa12bd121a30947
parente9e961c9a818a2f24711af493b907a8e40a69efc
jbd: Fail to load a journal if it is too short

Due to on disk corruption, it can happen that journal is too short. Fail
to load it in such case so that we don't oops somewhere later.

Reported-by: Nageswara R Sastry <rnsastry@linux.vnet.ibm.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/jbd/journal.c