]> git.itanic.dy.fi Git - linux-stable/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)
committerJiri Slaby <jslaby@suse.cz>
Mon, 13 Mar 2017 20:40:30 +0000 (21:40 +0100)
commitdfd582a9dff2854abed7d3c297921f974816535f
tree88aa6331558ef7f2b5cf3fb278329f6f201ee322
parentc1664e9bcf6291c0ceb8599f57c8cf493526abe6
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: Jiri Slaby <jslaby@suse.cz>
fs/ext4/super.c