]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zoned: factor out zoned device lookup
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Tue, 18 May 2021 15:40:29 +0000 (00:40 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jun 2021 13:19:05 +0000 (15:19 +0200)
commite7ff9e6b8e7d89199119468ae61b29a56f81ad28
tree391a711a8b389f79518e2803a17721da185b02b4
parent50535db8fbf67d44522de5b79ddf66fb6d0c14a8
btrfs: zoned: factor out zoned device lookup

To be able to construct a zone append bio we need to look up the
btrfs_device. The code doing the chunk map lookup to get the device is
present in btrfs_submit_compressed_write and submit_extent_page.

Factor out the lookup calls into a helper and use it in the submission
paths.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/extent_io.c
fs/btrfs/zoned.c
fs/btrfs/zoned.h