jbd2: if the journal is aborted then don't allow update of the log tail
authorTheodore Ts'o <tytso@mit.edu>
Mon, 19 Feb 2018 17:22:53 +0000 (12:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:34:12 +0000 (09:34 +0200)
commit82aad4a72f154f48aacc6592779700b1bad0ae07
tree7c9285db168c0f562c3faa155bf0cb50d4a7ae1d
parentbb6f26a637b4da6cb752c55635baa425d803f02d
jbd2: if the journal is aborted then don't allow update of the log tail

commit 85e0c4e89c1b864e763c4e3bb15d0b6d501ad5d9 upstream.

This updates the jbd2 superblock unnecessarily, and on an abort we
shouldn't truncate the log.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/jbd2/journal.c