diff options
| author | Darrick J. Wong <djwong@kernel.org> | 2025-04-09 02:14:35 +0300 |
|---|---|---|
| committer | Darrick J. Wong <djwong@kernel.org> | 2025-09-05 18:48:22 +0300 |
| commit | e4c7eece7676bac436a8f98b91d646a8b55a67af (patch) | |
| tree | f9e2520335667bccb6ab6a8e13df5b29cb8f9e8a /scripts/gdb/linux/vmalloc.py | |
| parent | 74fc66ee17fcd994a49ed80ddba90bc3b7046684 (diff) | |
| download | linux-e4c7eece7676bac436a8f98b91d646a8b55a67af.tar.xz | |
xfs: compute file mapping reap limits dynamically
Reaping file fork mappings is a little different -- log recovery can
free the blocks for us, so we only try to process a single mapping at a
time. Therefore, we only need to figure out the maximum number of
blocks that we can invalidate in a single transaction.
The rough calculation here is:
nr_extents = (logres - reservation used by any one step) /
(space used per binval)
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions
