]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: run delayed iputs before committing the transaction for data
authorJosef Bacik <josef@toxicpanda.com>
Tue, 21 Jul 2020 14:22:31 +0000 (10:22 -0400)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:06:53 +0000 (12:06 +0200)
commit0f42017b2fb5fab405c00180ab0b500e768b84a1
tree9631111ea05c6a629bfebd9ed6c2853aaef9ce82
parent85be525ac365db52a0bbcd28c22933c11be47e89
btrfs: run delayed iputs before committing the transaction for data

Before we were waiting on iputs after we committed the transaction, but
this doesn't really make much sense.  We want to reclaim any space we
may have in order to be more likely to commit the transaction, due to
pinned space being added by running the delayed iputs.  Fix this by
making delayed iputs run before committing the transaction.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Tested-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/space-info.c