]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: get rid of label and goto at insert_delayed_ref()
authorFilipe Manana <fdmanana@suse.com>
Mon, 29 May 2023 15:17:02 +0000 (16:17 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:31 +0000 (13:59 +0200)
commit798f4d95db0d71a2803c61b5e1fd5b739569c3da
tree66ef28b6c6f80795c22b8333caad02bd9ee1c2e9
parentf38462c4476cc57ef0e739bc8b8bc8f0a5754b3b
btrfs: get rid of label and goto at insert_delayed_ref()

At insert_delayed_ref() there's no point of having a label and goto in the
case we were able to insert the delayed ref head. We can just add the code
under label to the if statement's body and return immediately, and also
there is no need to track the return value in a variable, we can just
return a literal true or false value directly. So do those changes.

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/delayed-ref.c