]> www.infradead.org Git - users/dwmw2/linux.git/commit
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)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:33 +0000 (21:36 -0400)
commit63df8d82efef1be1d8f6c55d8582e4aeaf7ab800
tree7644a310020c62f46978891364282c305ee09893
parent0783df1065bdc483ababf31e35338cac0e9b789a
jbd2: if the journal is aborted then don't allow update of the log tail

[ Upstream commit 85e0c4e89c1b864e763c4e3bb15d0b6d501ad5d9 ]

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: Sasha Levin <alexander.levin@microsoft.com>
fs/jbd2/journal.c