]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/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)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 13 Mar 2017 21:20:54 +0000 (15:20 -0600)
commitf2bdf7e5bd584e07f9b121a82a4dca90d6c92510
treeede325721be77234acf0e57f6f5bd85ecf9f7c7d
parente22506b062a1970a6a7ea7d8d16d29017f7cbc65
ext4: preserve the needs_recovery flag when the journal is aborted

BugLink: http://bugs.launchpad.net/bugs/1672544
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/ext4/super.c