Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332500
b: refs/heads/master
c: ee849c0
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Block authored and Chris Mason committed Oct 1, 2012
1 parent b7c110c commit f527419
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d27aed5e24f8e7bb2b0d11e7a579f2bbdebafc2f
refs/heads/master: ee849c0472a9fe1dc09fe8390965d993b9c4e979
8 changes: 4 additions & 4 deletions trunk/fs/btrfs/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ struct backref_ctx {
u64 extent_len;

/* Just to check for bugs in backref resolving */
int found_in_send_root;
int found_itself;
};

static int __clone_root_cmp_bsearch(const void *key, const void *elt)
Expand Down Expand Up @@ -1077,7 +1077,7 @@ static int __iterate_backrefs(u64 ino, u64 offset, u64 root, void *ctx_)
if (found->root == bctx->sctx->send_root &&
ino == bctx->cur_objectid &&
offset == bctx->cur_offset) {
bctx->found_in_send_root = 1;
bctx->found_itself = 1;
}

/*
Expand Down Expand Up @@ -1210,7 +1210,7 @@ static int find_extent_clone(struct send_ctx *sctx,
backref_ctx.found = 0;
backref_ctx.cur_objectid = ino;
backref_ctx.cur_offset = data_offset;
backref_ctx.found_in_send_root = 0;
backref_ctx.found_itself = 0;
backref_ctx.extent_len = num_bytes;

/*
Expand All @@ -1231,7 +1231,7 @@ static int find_extent_clone(struct send_ctx *sctx,
if (ret < 0)
goto out;

if (!backref_ctx.found_in_send_root) {
if (!backref_ctx.found_itself) {
/* found a bug in backref code? */
ret = -EIO;
printk(KERN_ERR "btrfs: ERROR did not find backref in "
Expand Down

0 comments on commit f527419

Please sign in to comment.