summaryrefslogtreecommitdiff
path: root/CREDITS
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2020-06-17 11:25:49 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-03 11:19:25 +0200
commit2889f4beb39cb624253b497653eed4a240c08c6d (patch)
tree14469c1c935f674a6e9e040990bb40022b215f8b /CREDITS
parent0a4314699907d6f62c61604b8562a268c9a777d1 (diff)
jbd2: make sure jh have b_transaction set in refile/unfile_buffer
[ Upstream commit 24dc9864914eb5813173cfa53313fcd02e4aea7d ] Callers of __jbd2_journal_unfile_buffer() and __jbd2_journal_refile_buffer() assume that the b_transaction is set. In fact if it's not, we can end up with journal_head refcounting errors leading to crash much later that might be very hard to track down. Add asserts to make sure that is the case. We also make sure that b_next_transaction is NULL in __jbd2_journal_unfile_buffer() since the callers expect that as well and we should not get into that stage in this state anyway, leading to problems later on if we do. Tested with fstests. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20200617092549.6712-1-lczerner@redhat.com Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions