aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 813566acc5d3..558fbe407368 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -2365,6 +2365,9 @@ int btrfs_alloc_reserved_extent(struct btrfs_trans_handle *trans,
2365 struct btrfs_key *ins) 2365 struct btrfs_key *ins)
2366{ 2366{
2367 int ret; 2367 int ret;
2368
2369 if (root_objectid == BTRFS_TREE_LOG_OBJECTID)
2370 return 0;
2368 maybe_lock_mutex(root); 2371 maybe_lock_mutex(root);
2369 ret = __btrfs_alloc_reserved_extent(trans, root, root_objectid, 2372 ret = __btrfs_alloc_reserved_extent(trans, root, root_objectid,
2370 ref_generation, owner, 2373 ref_generation, owner,