]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:06:02 +0000 (08:06 -0800)
commit34dd3ffe4b57ce9e38ad3258dae5051c7c6a204b
tree93c661de46ce944159f6f2e78d4f36bee5a947a5
parent4ef61f0aecd7792e7678f29434d1b34860e78280
jbd2: Fail to load a journal if it is too short

(cherry picked from commit f6f50e28f0cb8d7bcdfaacc83129f005dede11b1)

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/jbd2/journal.c