summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/zoned.h
diff options
context:
space:
mode:
authorNaohiro Aota <naohiro.aota@wdc.com>2021-02-04 19:22:02 +0900
committerDavid Sterba <dsterba@suse.com>2021-02-09 02:46:05 +0100
commit138082f36610698e3fd00318f275d7f2159b8d26 (patch)
treeb82f607b7b604dd6a7509039f27f21ff8e561003 /fs/btrfs/zoned.h
parentcacb2cea46382aacf0365dbe231bd1ac3349478e (diff)
downloadlinux-138082f36610698e3fd00318f275d7f2159b8d26.tar.bz2
btrfs: extend btrfs_rmap_block for specifying a device
btrfs_rmap_block currently reverse-maps the physical addresses on all devices to the corresponding logical addresses. Extend the function to match to a specified device. The old functionality of querying all devices is left intact by specifying NULL as target device. A block_device instead of a btrfs_device is passed into btrfs_rmap_block, as this function is intended to reverse-map the result of a bio, which only has a block_device. Also export the function for later use. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/zoned.h')
0 files changed, 0 insertions, 0 deletions