btrfs: release metadata before running delayed refs
authorJosef Bacik <josef@toxicpanda.com>
Tue, 20 Nov 2018 08:11:21 +0000 (10:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Dec 2018 18:42:40 +0000 (19:42 +0100)
commit36d8dbf23fc7458fdb6ca683ffa1e565fd7fec23
tree1ea403f4562edb6b64acd3139ea396a6cf5ee726
parent07d8abace810e8e0af93638b06bcf1e3f6a1845a
btrfs: release metadata before running delayed refs

We want to release the unused reservation we have since it refills the
delayed refs reserve, which will make everything go smoother when
running the delayed refs if we're short on our reservation.

CC: stable@vger.kernel.org # 4.4+
Reviewed-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Liu Bo <bo.liu@linux.alibaba.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/transaction.c