]> www.infradead.org Git - users/dwmw2/linux.git/commit
btrfs: send: get rid of the label and gotos at ensure_commit_roots_uptodate()
authorFilipe Manana <fdmanana@suse.com>
Wed, 22 May 2024 08:33:32 +0000 (09:33 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:20 +0000 (15:33 +0200)
commitf9763e4d150f22b18e79f1ef7ad2bee0059d02ff
tree77ed308ebac372e0f155b49282ee17089bca033d
parentded980eb3fadd79f73a1254e6b26551c4d6c8ab9
btrfs: send: get rid of the label and gotos at ensure_commit_roots_uptodate()

Now that there is a helper to commit the current transaction and we are
using it, there's no need for the label and goto statements at
ensure_commit_roots_uptodate(). So replace them with direct return
statements that call btrfs_commit_current_transaction().

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Qu Wenruo <wqu@suse.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/send.c