aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2024-04-22 09:48:26 -0700
committerDarrick J. Wong <[email protected]>2024-04-23 16:55:18 -0700
commit4ad350ac58627bfe81f71f43f6738e36b4eb75c6 (patch)
tree8dea23bb5627e3878c8fe929742b4af5a79c5fc6 /scripts/gdb/linux/utils.py
parentb27ce0da60a523fc32e3795f96b2de5490642235 (diff)
xfs: only iget the file once when doing vectored scrub-by-handle
If a program wants us to perform a scrub on a file handle and the fd passed to ioctl() is not the file referenced in the handle, iget the file once and pass it into the scrub code. This amortizes the untrusted iget lookup over /all/ the scrubbers mentioned in the scrubv call. When running fstests in "rebuild all metadata after each test" mode, I observed a 10% reduction in runtime on account of avoiding repeated inobt lookups. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions