btrfs: zoned: don't clear dirty flag of extent buffer
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Thu, 23 Nov 2023 15:47:16 +0000 (07:47 -0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 15 Dec 2023 19:27:02 +0000 (20:27 +0100)
commitaa6313e6ff2bfbf736a2739047bba355d8241584
tree4e07f80e35cecf3a8b9e0c0a1bd36c784cf250e9
parentcbf44cd93db3a470ead92a938210f41095cea562
btrfs: zoned: don't clear dirty flag of extent buffer

One a zoned filesystem, never clear the dirty flag of an extent buffer,
but instead mark it as zeroout.

On writeout, when encountering a marked extent_buffer, zero it out.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Josef Bacik <josef@toxicpanda.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>
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/zoned.c