]> www.infradead.org Git - users/jedix/linux-maple.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>
Tue, 6 Apr 2021 13:35:52 +0000 (15:35 +0200)
commitf8e2da3746390855f1f622476f8423e039e86ee0
tree1cb75a2a4ab60ca06cdd43253657b89dbe862be4
parent4d9c607976c25c1d39d9e6b57ea2cff5deecd4bc
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