]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
btrfs: zoned: use regular writes for relocation
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Thu, 18 Nov 2021 08:58:16 +0000 (17:58 +0900)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 7 Dec 2021 06:33:50 +0000 (07:33 +0100)
commitff5f86564943b460c0de353b4192399517f1d650
tree08235025e6c1f6baaa318bcf390ffacf9bbb6e65
parent6a2d7530506dd53089802f220bc4279c493fb3ab
btrfs: zoned: use regular writes for relocation

BugLink: https://bugs.launchpad.net/bugs/1951820
commit e6d261e3b1f777b499ce8f535ed44dd1b69278b7 upstream

Now that we have a dedicated block group for relocation, we can use
REQ_OP_WRITE instead of  REQ_OP_ZONE_APPEND for writing out the data on
relocation.

Reviewed-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/btrfs/zoned.c