]> git.hungrycats.org Git - linux/commit
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:44:13 +0000 (06:44 +0100)
commit9605f3406975d12ac7ba415170e1f865be1e2070
treec6fb910d184a8356ff71c600589d99009656ff43
parent5dda2495d85ff8f49cc271b6a5512f5ef8f91fe1
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