]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
Btrfs: use right extent item position in send when finding extent clones
authorFilipe David Borba Manana <fdmanana@gmail.com>
Wed, 5 Feb 2014 16:48:55 +0000 (16:48 +0000)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:15:48 +0000 (15:15 -0400)
This was a leftover from the commit:

   74dd17fbe3d65829e75d84f00a9525b2ace93998
   (Btrfs: fix btrfs send for inline items and compression)

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/send.c

index bef7ba638dee9409b2dcc28fcc26a3d0ce8dd10b..89fefbd955f3b4f2dc4244dc0f42e2d9e8d62df1 100644 (file)
@@ -1288,8 +1288,6 @@ static int find_extent_clone(struct send_ctx *sctx,
                extent_item_pos = logical - found_key.objectid;
        else
                extent_item_pos = 0;
-
-       extent_item_pos = logical - found_key.objectid;
        ret = iterate_extent_inodes(sctx->send_root->fs_info,
                                        found_key.objectid, extent_item_pos, 1,
                                        __iterate_backrefs, backref_ctx);