jbd2: Fail to load a journal if it is too short
authorJan Kara <jack@suse.cz>
Fri, 17 Jul 2009 14:40:01 +0000 (10:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 17 Jul 2009 14:40:01 +0000 (10:40 -0400)
commitf6f50e28f0cb8d7bcdfaacc83129f005dede11b1
treef7a0ee7cc686c0687cd4020185265ae0cd29471b
parent78f1ddbb498283c2445c11b0dfa666424c301803
jbd2: 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.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/journal.c