diff options
author | Naohiro Aota <naohiro.aota@wdc.com> | 2021-02-04 19:22:02 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-02-09 02:46:05 +0100 |
commit | 138082f36610698e3fd00318f275d7f2159b8d26 (patch) | |
tree | b82f607b7b604dd6a7509039f27f21ff8e561003 /net/dccp | |
parent | cacb2cea46382aacf0365dbe231bd1ac3349478e (diff) |
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 'net/dccp')
0 files changed, 0 insertions, 0 deletions