diff options
| author | Filipe Manana <[email protected]> | 2023-11-21 13:38:37 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2023-12-15 19:27:02 +0000 |
| commit | ebb0beca6c6a2d33f809a74bad63261651237833 (patch) | |
| tree | 7bbb3da7ed3f186b28c09da660292dd5f33aa001 /fs/btrfs/dev-replace.c | |
| parent | btrfs: unexport extent_map_block_end() (diff) | |
| download | kernel-ebb0beca6c6a2d33f809a74bad63261651237833.tar.gz kernel-ebb0beca6c6a2d33f809a74bad63261651237833.zip | |
btrfs: use btrfs_next_item() at scrub.c:find_first_extent_item()
There's no reason to open code what btrfs_next_item() does when searching
for extent items at scrub.c:scrub.c:find_first_extent_item(), so remove
the logic to find the next item and use btrfs_next_item() instead, making
the code shorter and less nested code blocks. While at it also fix the
comment to the plural "items" instead of "item" and end it with proper
punctuation.
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
