btrfs: simplify the error handling in __extent_writepage_io
authorChristoph Hellwig <hch@lst.de>
Mon, 27 Feb 2023 15:17:02 +0000 (08:17 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:16 +0000 (18:01 +0200)
commit5380311fc8b7baa45011a9b45193b8ba11fc0efb
treefad20f454a8573eff936d092e0246b83620cdd26
parent551733372fda4ca2ed09d5c47dae6ce9f96aab60
btrfs: simplify the error handling in __extent_writepage_io

Remove the has_error and saved_ret variables, and just jump to a goto
label for error handling from the only place returning an error from the
main loop.

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