aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2022-03-24 16:52:10 +0000
committerDavid Sterba <[email protected]>2022-04-19 13:44:49 +0000
commit50f1cff3d8865909727fad6f960ce5a050799d00 (patch)
tree9c33dbc94627dbac84e81fe092021c4bcc77e516 /fs/btrfs/dev-replace.c
parentbtrfs: fix leaked plug after failure syncing log on zoned filesystems (diff)
downloadkernel-50f1cff3d8865909727fad6f960ce5a050799d00.tar.gz
kernel-50f1cff3d8865909727fad6f960ce5a050799d00.zip
btrfs: fix and document the zoned device choice in alloc_new_bio
Zone Append bios only need a valid block device in struct bio, but not the device in the btrfs_bio. Use the information from btrfs_zoned_get_device to set up bi_bdev and fix zoned writes on multi-device file system with non-homogeneous capabilities and remove the pointless btrfs_bio.device assignment. Add big fat comments explaining what is going on here. Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Naohiro Aota <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions