Re: [PATCH v11 23/40] btrfs: extend btrfs_rmap_block for specifying a device
From: Josef Bacik <josef@toxicpanda.com>
Date: 2021-01-12 16:01:20
Also in:
linux-btrfs
From: Josef Bacik <josef@toxicpanda.com>
Date: 2021-01-12 16:01:20
Also in:
linux-btrfs
On 12/21/20 10:49 PM, Naohiro Aota wrote:
btrfs_rmap_block currently reverse-maps the physical addresses on all devices to the corresponding logical addresses. This commit extends the function to match to a specified device. The old functionality of querying all devices is left intact by specifying NULL as target device. We pass block_device instead of btrfs_device to __btrfs_rmap_block. This function is intended to reverse-map the result of bio, which only have block_device. This commit also exports the function for later use. Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com> Thanks, Josef