Btrfs-progs: add missing path release
authorFilipe David Borba Manana <fdmanana@gmail.com>
Tue, 9 Jul 2013 11:45:23 +0000 (12:45 +0100)
committerDavid Sterba <dsterba@suse.cz>
Fri, 9 Aug 2013 12:32:34 +0000 (14:32 +0200)
Before repeating the search in extent-tree.c:lookup_inline_extent_backref(),
release the current path.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
extent-tree.c

index 8598bfbf4eed7e259c6890fc531a05cd5497c2d5..9f1ca604c15d82d87fd1a249a53aa17d633830a0 100644 (file)
@@ -1059,6 +1059,7 @@ again:
                if (ret) {
                        key.type = BTRFS_EXTENT_ITEM_KEY;
                        key.offset = num_bytes;
+                       btrfs_release_path(root, path);
                        goto again;
                }
        }