diff options
| author | Christoph Hellwig <[email protected]> | 2025-04-09 11:10:37 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-05-15 12:30:46 +0000 |
| commit | 3240b2c97bb862352411713592d4094420691abd (patch) | |
| tree | d84186de2186033e784058a0bd75f2ca7e3bcbd5 /fs/btrfs/async-thread.c | |
| parent | btrfs: track the next file offset in struct btrfs_bio_ctrl (diff) | |
| download | kernel-3240b2c97bb862352411713592d4094420691abd.tar.gz kernel-3240b2c97bb862352411713592d4094420691abd.zip | |
btrfs: pass a physical address to btrfs_repair_io_failure()
Using physical address has the following advantages:
- All involved callers only need a single pointer
Instead of the old @folio + @offset pair.
- No complex poking into the bio_vec structure
As a bio_vec can be single or multiple paged, grabbing the real page
can be quite complex if the bio_vec is a multi-page one.
Instead bvec_phys() will always give a single physical address, and it
cab be easily converted to a page.
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions
