OSDN Git Service

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:32:07 +0000 (09:32 +0200)
commit10c624084758db770986de190dc9b387dfdb49c0
tree91ad789021bf280b107905a01a03bcf26c499cb0
parent010f0fb42c2a19b71405ead2009164e4dcf78a00
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