btrfs: simplify commit logic in try_flush_qgroup
authorNikolay Borisov <nborisov@suse.com>
Mon, 22 Feb 2021 16:40:45 +0000 (18:40 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Apr 2021 15:25:14 +0000 (17:25 +0200)
commitae396a3b7ad00c0730ef0d08916525acd3853af5
tree5bde420b607c314ddb46210af793693ffc2899c9
parente5ce9886904a1ed20c17bdc182c0faf5c341f00b
btrfs: simplify commit logic in try_flush_qgroup

It's no longer expected to call this function with an open transaction
so all the workarounds concerning this can be removed. In fact it'll
constitute a bug to call this function with a transaction already held
so WARN in this case.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/qgroup.c