btrfs: open code need_full_stripe conditions
authorChristoph Hellwig <hch@lst.de>
Wed, 31 May 2023 04:17:39 +0000 (06:17 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:34 +0000 (13:59 +0200)
commit8680e58761eba8ea3552146ea005be30dfed2948
tree384bb289a79f1b4fa49ee3820bfcde7876afd629
parent723b8bb17e2e680934f59823ab1e72c1000d88d6
btrfs: open code need_full_stripe conditions

need_full_stripe is just a somewhat complicated way to say
"op != BTRFS_MAP_READ".  Just spell that explicit check out, which makes
a lot of the code currently using the helper easier to understand.

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