diff options
| author | Jan Kara <jack@suse.cz> | 2026-08-05 17:35:47 +0200 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2026-08-06 22:52:23 -0400 |
| commit | 25b2a7e8d420c49fc46f25b6f953603e4dae1dbf (patch) | |
| tree | 836ab8c84568c7f00a70a94e01e125c95c1f75f1 /tools/perf/scripts/python | |
| parent | 8f3901fbb40745046e513226ad84e8b84492632d (diff) | |
ext4: teach ext4_meta_trans_blocks() about number of allocated extents
So far ext4_meta_trans_blocks() expects that each extent counted in
@pextents will be allocated in the transaction we estimate credits for.
This is correct for the use in ext4_chunk_trans_blocks() and
ext4_chunk_trans_extent() however the use in atomic write path
(ext4_convert_unwritten_extents_atomic() and ext4_iomap_alloc() for
IOMAP_ATOMIC) unnecessarily overestimates the number of necessary
credits as neither of them allocates any data. Add argument to
ext4_meta_trans_blocks() for number of extents that are going to be
allocated in the transaction.
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260805153605.166545-4-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
