btrfs: use a single variable for return value at run_delayed_extent_op()
authorFilipe Manana <fdmanana@suse.com>
Fri, 8 Sep 2023 17:20:30 +0000 (18:20 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:06 +0000 (16:44 +0200)
commit20fb05a6d10ea3ef517bda59a195234a416555c9
tree4e3b9c122a7f061fe958b122747c3de199347e66
parente721043a988c524e4771c43246d2f7a1996bb020
btrfs: use a single variable for return value at run_delayed_extent_op()

Instead of using a 'ret' and an 'err' variable at run_delayed_extent_op()
for tracking the return value, use a single one ('ret'). This simplifies
the code, makes it comply with most of the existing code and it's less
prone for logic errors as time has proven over and over in the btrfs code.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c