Btrfs: rename root_times_lock to root_item_lock
Originally root_times_lock was introduced as part of send/receive code however newly developed patch to label the subvol reused the same lock, so renaming it for a meaningful name. Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
@@ -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 "
|
||||
|
Reference in New Issue
Block a user