diff options
author | Jan Kara <jack@suse.cz> | 2023-03-29 18:49:39 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-04-15 02:56:53 +0300 |
commit | 783ae448b7a21ca59ffe5bc261c17d9c3ebfe2ad (patch) | |
tree | c100de92287ff1066353fbd3a0a655f81079bb9b /tools/perf/scripts/python/syscall-counts.py | |
parent | c000dfec7e88cee660cbc594c9716ecc979dc1f1 (diff) | |
download | linux-783ae448b7a21ca59ffe5bc261c17d9c3ebfe2ad.tar.xz |
ext4: Fix special handling of journalled data from extent zeroing
The handling of journalled data in ext4_zero_range() is incomplete. We
do not need to commit running transaction but we rather need to
checkpoint pages with journalled data. If we don't, journal tail can be
advanced beyond transaction containing the journalled data and if we
then crash before committing the transaction doing the zeroing we will
have inconsistent (too old) data in the file. Make sure file pages with
journalled data are properly checkpointed before removing them from the
page cache.
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230329154950.19720-8-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions