aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index e5167219c266..9be97716c5e0 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -1243,7 +1243,8 @@ static struct btrfs_root *alloc_log_tree(struct btrfs_trans_handle *trans,
1243 root->ref_cows = 0; 1243 root->ref_cows = 0;
1244 1244
1245 leaf = btrfs_alloc_free_block(trans, root, root->leafsize, 0, 1245 leaf = btrfs_alloc_free_block(trans, root, root->leafsize, 0,
1246 BTRFS_TREE_LOG_OBJECTID, NULL, 0, 0, 0); 1246 BTRFS_TREE_LOG_OBJECTID, NULL,
1247 0, 0, 0, 0);
1247 if (IS_ERR(leaf)) { 1248 if (IS_ERR(leaf)) {
1248 kfree(root); 1249 kfree(root);
1249 return ERR_CAST(leaf); 1250 return ERR_CAST(leaf);