summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorRitesh Harjani (IBM) <ritesh.list@gmail.com>2024-02-29 09:10:13 +0300
committerTheodore Ts'o <tytso@mit.edu>2024-05-02 17:50:44 +0300
commitc2a09f3d782de952f09a3962d03b939e7fa7ffa4 (patch)
tree721d42055cd75391056f071b77d32e3f58c9bcfe /tools/perf/scripts/python/stackcollapse.py
parent0bbac3facb5d6cc0171c45c9873a2dc96bea9680 (diff)
downloadlinux-c2a09f3d782de952f09a3962d03b939e7fa7ffa4.tar.xz
ext4: Fixes len calculation in mpage_journal_page_buffers
Truncate operation can race with writeback, in which inode->i_size can get truncated and therefore size - folio_pos() can be negative. This fixes the len calculation. However this path doesn't get easily triggered even with data journaling. Cc: stable@kernel.org # v6.5 Fixes: 80be8c5cc925 ("Fixes: ext4: Make mpage_journal_page_buffers use folio") Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/cff4953b5c9306aba71e944ab176a5d396b9a1b7.1709182250.git.ritesh.list@gmail.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions