btrfs: never return true for reads in btrfs_use_zone_append
authorChristoph Hellwig <hch@lst.de>
Mon, 12 Dec 2022 07:37:22 +0000 (08:37 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 15 Feb 2023 18:38:55 +0000 (19:38 +0100)
commitfdf9a37dcfd47e9bd18d1218f2d0b2fa3748d00d
tree6db3e2a618c2850ba6a5f20db32a92cf169d610f
parent921603c76246a7f716b9a244d7b1fa1653935f31
btrfs: never return true for reads in btrfs_use_zone_append

Using Zone Append only makes sense for writes to the device, so check
that in btrfs_use_zone_append.  This avoids the possibility of
artificially limited read size on zoned file systems.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/zoned.c