aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r--fs/btrfs/transaction.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index 38c75a0256cb..0f756e0175c0 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -382,6 +382,9 @@ static noinline int add_dirty_roots(struct btrfs_trans_handle *trans,
382 memcpy(dirty->root, root, sizeof(*root)); 382 memcpy(dirty->root, root, sizeof(*root));
383 dirty->root->node = root->commit_root; 383 dirty->root->node = root->commit_root;
384 dirty->latest_root = root; 384 dirty->latest_root = root;
385 spin_lock_init(&dirty->root->node_lock);
386 mutex_init(&dirty->root->objectid_mutex);
387
385 root->commit_root = NULL; 388 root->commit_root = NULL;
386 389
387 root->root_key.offset = root->fs_info->generation; 390 root->root_key.offset = root->fs_info->generation;