]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita10e1530ab28e8c522545569791277049b09c316
tree5bde420b607c314ddb46210af793693ffc2899c9
parent8de334ab2b775a50763b79b44f1acb916a06e9e5
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