aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/extent-tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 0f6737063142..28ce5c8004d4 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -9555,7 +9555,8 @@ void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info)
9555 * Want to do this before we do anything else so we can recover 9555 * Want to do this before we do anything else so we can recover
9556 * properly if we fail to join the transaction. 9556 * properly if we fail to join the transaction.
9557 */ 9557 */
9558 trans = btrfs_join_transaction(root); 9558 /* 1 for btrfs_orphan_reserve_metadata() */
9559 trans = btrfs_start_transaction(root, 1);
9559 if (IS_ERR(trans)) { 9560 if (IS_ERR(trans)) {
9560 btrfs_set_block_group_rw(root, block_group); 9561 btrfs_set_block_group_rw(root, block_group);
9561 ret = PTR_ERR(trans); 9562 ret = PTR_ERR(trans);