Skip to contentSkip to conversation

Btrfs: do not free the dirty bytes from the trans block rsv on cleanup

PATCH New Josef Bacik 1 participant 1 message Oct 7, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Btrfs: do not free the dirty bytes from the trans block rsv on cleanup

The transactions should be cleaning up their reservations on failure, this just causes us to have warnings on unmount because we go negative by free'ing reservations that have already been free'ed. Thanks,

---
 fs/btrfs/disk-io.c | 2 --
 1 file changed, 2 deletions(-)
fs/btrfs/disk-io.c +0 -2
index d205bdd..fdc75ab 100644
@@ -4046,8 +4046,6 @@ void btrfs_cleanup_one_transaction(struct btrfs_transaction *cur_trans,
 	btrfs_destroy_ordered_operations(cur_trans, root);
 
 	btrfs_destroy_delayed_refs(cur_trans, root);
-	btrfs_block_rsv_release(root, &root->fs_info->trans_block_rsv,
-				cur_trans->dirty_pages.dirty_bytes);
 
 	cur_trans->state = TRANS_STATE_COMMIT_START;
 	wake_up(&root->fs_info->transaction_blocked_wait);
Signature · 1 line
1.8.3.1