[20/23] btrfs: run delayed iputs before committing the transaction for data
diff mbox series

Message ID 20200204161951.764935-21-josef@toxicpanda.com
State New
Headers show
  • Convert data reservations to the ticketing infrastructure
Related show

Commit Message

Josef Bacik Feb. 4, 2020, 4:19 p.m. UTC
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>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
 fs/btrfs/space-info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Johannes Thumshirn Feb. 5, 2020, 8:18 a.m. UTC | #1
On 04/02/2020 17:20, Josef Bacik wrote:
> Before we were waiting on iputs after we committed the transaction

Code wise it's OK but the sentence above doesn't make much sense to me, 
feels like it's missing a verb.

diff mbox series

diff --git a/fs/btrfs/space-info.c b/fs/btrfs/space-info.c
index abd6f35d8fd0..d9085322bacd 100644
--- a/fs/btrfs/space-info.c
+++ b/fs/btrfs/space-info.c
@@ -804,8 +804,8 @@  static const enum btrfs_flush_state evict_flush_states[] = {
 static const enum btrfs_flush_state data_flush_states[] = {
 static void priority_reclaim_metadata_space(struct btrfs_fs_info *fs_info,