diff options
Diffstat (limited to 'fs/btrfs/send.c')
-rw-r--r-- | fs/btrfs/send.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index ba8950bfd9c7..bd5756504709 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c | |||
@@ -1186,9 +1186,9 @@ static int __clone_root_cmp_bsearch(const void *key, const void *elt) | |||
1186 | u64 root = (u64)(uintptr_t)key; | 1186 | u64 root = (u64)(uintptr_t)key; |
1187 | struct clone_root *cr = (struct clone_root *)elt; | 1187 | struct clone_root *cr = (struct clone_root *)elt; |
1188 | 1188 | ||
1189 | if (root < cr->root->objectid) | 1189 | if (root < cr->root->root_key.objectid) |
1190 | return -1; | 1190 | return -1; |
1191 | if (root > cr->root->objectid) | 1191 | if (root > cr->root->root_key.objectid) |
1192 | return 1; | 1192 | return 1; |
1193 | return 0; | 1193 | return 0; |
1194 | } | 1194 | } |
@@ -1198,9 +1198,9 @@ static int __clone_root_cmp_sort(const void *e1, const void *e2) | |||
1198 | struct clone_root *cr1 = (struct clone_root *)e1; | 1198 | struct clone_root *cr1 = (struct clone_root *)e1; |
1199 | struct clone_root *cr2 = (struct clone_root *)e2; | 1199 | struct clone_root *cr2 = (struct clone_root *)e2; |
1200 | 1200 | ||
1201 | if (cr1->root->objectid < cr2->root->objectid) | 1201 | if (cr1->root->root_key.objectid < cr2->root->root_key.objectid) |
1202 | return -1; | 1202 | return -1; |
1203 | if (cr1->root->objectid > cr2->root->objectid) | 1203 | if (cr1->root->root_key.objectid > cr2->root->root_key.objectid) |
1204 | return 1; | 1204 | return 1; |
1205 | return 0; | 1205 | return 0; |
1206 | } | 1206 | } |
@@ -2346,7 +2346,7 @@ static int send_subvol_begin(struct send_ctx *sctx) | |||
2346 | return -ENOMEM; | 2346 | return -ENOMEM; |
2347 | } | 2347 | } |
2348 | 2348 | ||
2349 | key.objectid = send_root->objectid; | 2349 | key.objectid = send_root->root_key.objectid; |
2350 | key.type = BTRFS_ROOT_BACKREF_KEY; | 2350 | key.type = BTRFS_ROOT_BACKREF_KEY; |
2351 | key.offset = 0; | 2351 | key.offset = 0; |
2352 | 2352 | ||
@@ -2362,7 +2362,7 @@ static int send_subvol_begin(struct send_ctx *sctx) | |||
2362 | leaf = path->nodes[0]; | 2362 | leaf = path->nodes[0]; |
2363 | btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); | 2363 | btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); |
2364 | if (key.type != BTRFS_ROOT_BACKREF_KEY || | 2364 | if (key.type != BTRFS_ROOT_BACKREF_KEY || |
2365 | key.objectid != send_root->objectid) { | 2365 | key.objectid != send_root->root_key.objectid) { |
2366 | ret = -ENOENT; | 2366 | ret = -ENOENT; |
2367 | goto out; | 2367 | goto out; |
2368 | } | 2368 | } |
@@ -4907,8 +4907,8 @@ static int send_clone(struct send_ctx *sctx, | |||
4907 | 4907 | ||
4908 | btrfs_debug(sctx->send_root->fs_info, | 4908 | btrfs_debug(sctx->send_root->fs_info, |
4909 | "send_clone offset=%llu, len=%d, clone_root=%llu, clone_inode=%llu, clone_offset=%llu", | 4909 | "send_clone offset=%llu, len=%d, clone_root=%llu, clone_inode=%llu, clone_offset=%llu", |
4910 | offset, len, clone_root->root->objectid, clone_root->ino, | 4910 | offset, len, clone_root->root->root_key.objectid, |
4911 | clone_root->offset); | 4911 | clone_root->ino, clone_root->offset); |
4912 | 4912 | ||
4913 | p = fs_path_alloc(); | 4913 | p = fs_path_alloc(); |
4914 | if (!p) | 4914 | if (!p) |