diff options
Diffstat (limited to 'fs/btrfs/send.c')
| -rw-r--r-- | fs/btrfs/send.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index e78b297b0b0..54454542ad4 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -4397,9 +4397,9 @@ static int full_send_tree(struct send_ctx *sctx)  	if (!path)  		return -ENOMEM; -	spin_lock(&send_root->root_times_lock); +	spin_lock(&send_root->root_item_lock);  	start_ctransid = btrfs_root_ctransid(&send_root->root_item); -	spin_unlock(&send_root->root_times_lock); +	spin_unlock(&send_root->root_item_lock);  	key.objectid = BTRFS_FIRST_FREE_OBJECTID;  	key.type = BTRFS_INODE_ITEM_KEY; @@ -4422,9 +4422,9 @@ join_trans:  	 * Make sure the tree has not changed after re-joining. We detect this  	 * by comparing start_ctransid and ctransid. They should always match.  	 */ -	spin_lock(&send_root->root_times_lock); +	spin_lock(&send_root->root_item_lock);  	ctransid = btrfs_root_ctransid(&send_root->root_item); -	spin_unlock(&send_root->root_times_lock); +	spin_unlock(&send_root->root_item_lock);  	if (ctransid != start_ctransid) {  		WARN(1, KERN_WARNING "btrfs: the root that you're trying to "  |