]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: pass a physical address to btrfs_repair_io_failure()
authorChristoph Hellwig <hch@lst.de>
Wed, 9 Apr 2025 11:10:37 +0000 (13:10 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:46 +0000 (14:30 +0200)
commit3240b2c97bb862352411713592d4094420691abd
treed84186de2186033e784058a0bd75f2ca7e3bcbd5
parentf6b2d8b134b2413b7b3a937a4fe57c8b05fea62e
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 <josef@toxicpanda.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/bio.c
fs/btrfs/bio.h
fs/btrfs/disk-io.c