]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: fix infinite loop when recovering corrupt journal blocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 27 Aug 2014 22:40:05 +0000 (18:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 29 Aug 2014 02:22:28 +0000 (22:22 -0400)
commita1a6ba11eb1bfa1fb89e40df8f8c547e64eafc2a
tree1d79bb7473a3112c00df51e260c68e6e1f61b94a
parentca08d44b34b7243e1714701993f5ee2b2346ec9b
jbd2: fix infinite loop when recovering corrupt journal blocks

When recovering the journal, don't fall into an infinite loop if we
encounter a corrupt journal block.  Instead, just skip the block and
return an error, which fails the mount and thus forces the user to run
a full filesystem fsck.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/jbd2/recovery.c