summaryrefslogtreecommitdiff
path: root/fs/btrfs/zoned.h
diff options
context:
space:
mode:
authorNaohiro Aota <naohiro.aota@wdc.com>2021-02-04 13:22:12 +0300
committerDavid Sterba <dsterba@suse.com>2021-02-09 04:46:07 +0300
commit6143c23ccced762d21a87ef5fa421ba876231131 (patch)
treeddddec1971300c4c72f855105205970b118ecf2d /fs/btrfs/zoned.h
parent78ce9fc269af6e69c1399ab910ba6bc81c934f67 (diff)
downloadlinux-6143c23ccced762d21a87ef5fa421ba876231131.tar.xz
btrfs: zoned: implement cloning for zoned device-replace
This is 2/4 patch to implement device replace for zoned filesystems. In zoned mode, a block group must be either copied (from the source device to the target device) or cloned (to both devices). Implement the cloning part. If a block group targeted by an IO is marked to copy, we should not clone the IO to the destination device, because the block group is eventually copied by the replace process. This commit also handles cloning of device reset. 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