btrfs: don't call btrfs_record_physical_zoned for failed append
authorChristoph Hellwig <hch@lst.de>
Wed, 24 May 2023 15:03:05 +0000 (17:03 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:32 +0000 (13:59 +0200)
commite9cb93b9fbd0bfcef2774e82d095362ad16acf6e
tree4556cba593f98191e39421ef2338a7cd35bc46c0
parentdd8b7b0416704efb0dcd74801a1a48aa221f1cf5
btrfs: don't call btrfs_record_physical_zoned for failed append

When a zoned append command fails there is no written address reported,
so don't try to record it.

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/bio.c