ext4: preserve the needs_recovery flag when the journal is aborted

commit 97abd7d4b5 upstream.

If the journal is aborted, the needs_recovery feature flag should not
be removed.  Otherwise, it's the journal might not get replayed and
this could lead to more data getting lost.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Theodore Ts'o 2017-02-04 23:38:06 -05:00 • committed by Greg Kroah-Hartman
commit 269bf7b8c5