summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorZhang Yi <yi.zhang@huawei.com>2024-12-03 04:44:07 +0300
committerChristian Brauner <brauner@kernel.org>2024-12-04 14:00:05 +0300
commita0851ea9cd555c333795b85ddd908898b937c4e1 (patch)
tree2a5bc7c5e39801a39e7de76cde586e6f32828d05 /tools/perf/scripts/python/exported-sql-viewer.py
parentac1e21bd8c883aeac2f1835fc93b39c1e6838b35 (diff)
downloadlinux-a0851ea9cd555c333795b85ddd908898b937c4e1.tar.xz
jbd2: flush filesystem device before updating tail sequence
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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions