diff options
| author | Brian Foster <bfoster@redhat.com> | 2026-10-05 08:01:17 -0400 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-10-06 10:21:57 +0200 |
| commit | 831f4c28b5dca287422613fe1c1bf4ff1ad13cd1 (patch) | |
| tree | 2d269a2746bc65be6deb3d9c32c03ddc65944b00 /tools/perf/scripts/python | |
| parent | ad4c2c4630b743c6a3bc1198faaadffd35c94268 (diff) | |
| download | linux-831f4c28b5dca287422613fe1c1bf4ff1ad13cd1.tar.gz linux-831f4c28b5dca287422613fe1c1bf4ff1ad13cd1.zip | |
xfs: calculate AGFL max to support multiple-alloc transactions
Rework xfs_alloc_min_freelist() to return an (optional) max value
along with the historical min freelist value. The max value
includes an extra level in the btree based calculation to account
for btree splits in the first allocation of a multi-alloc sequence.
This value reflects the worst case AGFL requirement that can be
expected across multiple allocations within a single AG and single
transaction. For example, consider the case of allocating an inode
chunk and then an inobt block on inode record insertion.
While here, rename the need variable in xfs_alloc_fix_freelist() for
clarity with upcoming changes.
Note that no callers calculate the max AGFL value as of yet. No
functional changes in this patch.
Assisted-by: LLM
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Mark Tinguely <mark.tinguely@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
