ext4: preserve the needs_recovery flag when the journal is aborted
authorTheodore Ts'o <tytso@mit.edu>
Sun, 5 Feb 2017 04:38:06 +0000 (23:38 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 05:37:27 +0000 (06:37 +0100)
commit9a79248c083d502958a7c833bcaa8879fbe09682
tree919beadf7072089cb215d7f0d675551983c9ee4d
parent6ec4583e9b03f64166902b4b4d8301d0f62b49bc
ext4: preserve the needs_recovery flag when the journal is aborted

commit 97abd7d4b5d9c48ec15c425485f054e1c15e591b 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>
fs/ext4/super.c