diff options
| author | Brian Foster <[email protected]> | 2024-01-15 19:27:49 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2025-04-24 23:10:29 +0000 |
| commit | 2d55a637095d0eaaad609b8a518589ead34487b3 (patch) | |
| tree | 5803dd390ebb3a2a7cf6877bb4315c8e944c909b /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | bcachefs: track current fiemap offset in start variable (diff) | |
| download | kernel-2d55a637095d0eaaad609b8a518589ead34487b3.tar.gz kernel-2d55a637095d0eaaad609b8a518589ead34487b3.zip | |
bcachefs: refactor fiemap processing into extent helper and struct
The bulk of the loop in bch2_fiemap() involves processing the
current extent key from the iter, including following indirections
and trimming the extent size and such. This patch makes a few
changes to reduce the size of the loop and facilitate future changes
to support delalloc extents.
Define a new bch_fiemap_extent structure to wrap the bkey buffer
that holds the extent key to report to userspace along with
associated fiemap flags. Update bch2_fill_extent() to take the
bch_fiemap_extent as a param instead of the individual fields.
Finally, lift the bulk of the extent processing into a
bch2_fiemap_extent() helper that takes the current key and formats
the bch_fiemap_extent appropriately for the fill function.
No functional changes intended by this patch.
Signed-off-by: Brian Foster <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
