summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorZhang Yi <yi.zhang@huawei.com>2024-12-03 09:44:07 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-17 13:40:33 +0100
commita5bc868610207dfbc3a4366288088af7094baaec (patch)
treeb7e76086ce8964bdf34be0874a3e7ff962e76362 /Documentation
parent56c4353ce4b56f87bc2b6763cdb593e5a42a0c22 (diff)
downloadlinux-a5bc868610207dfbc3a4366288088af7094baaec.tar.gz
linux-a5bc868610207dfbc3a4366288088af7094baaec.tar.bz2
linux-a5bc868610207dfbc3a4366288088af7094baaec.zip
jbd2: flush filesystem device before updating tail sequence
[ Upstream commit a0851ea9cd555c333795b85ddd908898b937c4e1 ] When committing transaction in jbd2_journal_commit_transaction(), the disk caches for the filesystem device should be flushed before updating the journal tail sequence. However, this step is missed if the journal is not located on the filesystem device. As a result, the filesystem may become inconsistent following a power failure or system crash. Fix it by ensuring that the filesystem device is flushed appropriately. Fixes: 3339578f0578 ("jbd2: cleanup journal tail after transaction commit") Signed-off-by: Zhang Yi <yi.zhang@huawei.com> Link: https://lore.kernel.org/r/20241203014407.805916-3-yi.zhang@huaweicloud.com Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions