aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/send.c
diff options
context:
space:
mode:
authorAlexander Block <ablock84@googlemail.com>2012-07-28 06:42:05 -0400
committerChris Mason <chris.mason@fusionio.com>2012-10-01 15:18:48 -0400
commitee849c0472a9fe1dc09fe8390965d993b9c4e979 (patch)
treee882275d16a8a667596c1926e1293dd9b3c3f909 /fs/btrfs/send.c
parentd27aed5e24f8e7bb2b0d11e7a579f2bbdebafc2f (diff)
Btrfs: rename backref_ctx::found_in_send_root to found_itself
The new name should be easier to understand/read. Commit is a result of Arne's review. Signed-off-by: Alexander Block <ablock84@googlemail.com>
Diffstat (limited to 'fs/btrfs/send.c')
-rw-r--r--fs/btrfs/send.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index f1d44b125beb..a25be0c1a6b9 100644
--- a/fs/btrfs/send.c
+++ b/fs/btrfs/send.c
@@ -1029,7 +1029,7 @@ struct backref_ctx {
1029 u64 extent_len; 1029 u64 extent_len;
1030 1030
1031 /* Just to check for bugs in backref resolving */ 1031 /* Just to check for bugs in backref resolving */
1032 int found_in_send_root; 1032 int found_itself;
1033}; 1033};
1034 1034
1035static int __clone_root_cmp_bsearch(const void *key, const void *elt) 1035static int __clone_root_cmp_bsearch(const void *key, const void *elt)
@@ -1077,7 +1077,7 @@ static int __iterate_backrefs(u64 ino, u64 offset, u64 root, void *ctx_)
1077 if (found->root == bctx->sctx->send_root && 1077 if (found->root == bctx->sctx->send_root &&
1078 ino == bctx->cur_objectid && 1078 ino == bctx->cur_objectid &&
1079 offset == bctx->cur_offset) { 1079 offset == bctx->cur_offset) {
1080 bctx->found_in_send_root = 1; 1080 bctx->found_itself = 1;
1081 } 1081 }
1082 1082
1083 /* 1083 /*
@@ -1210,7 +1210,7 @@ static int find_extent_clone(struct send_ctx *sctx,
1210 backref_ctx.found = 0; 1210 backref_ctx.found = 0;
1211 backref_ctx.cur_objectid = ino; 1211 backref_ctx.cur_objectid = ino;
1212 backref_ctx.cur_offset = data_offset; 1212 backref_ctx.cur_offset = data_offset;
1213 backref_ctx.found_in_send_root = 0; 1213 backref_ctx.found_itself = 0;
1214 backref_ctx.extent_len = num_bytes; 1214 backref_ctx.extent_len = num_bytes;
1215 1215
1216 /* 1216 /*
@@ -1231,7 +1231,7 @@ static int find_extent_clone(struct send_ctx *sctx,
1231 if (ret < 0) 1231 if (ret < 0)
1232 goto out; 1232 goto out;
1233 1233
1234 if (!backref_ctx.found_in_send_root) { 1234 if (!backref_ctx.found_itself) {
1235 /* found a bug in backref code? */ 1235 /* found a bug in backref code? */
1236 ret = -EIO; 1236 ret = -EIO;
1237 printk(KERN_ERR "btrfs: ERROR did not find backref in " 1237 printk(KERN_ERR "btrfs: ERROR did not find backref in "