summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorChris Mason2007-04-05 16:38:44 +0200
committerDavid Woodhouse2007-04-05 16:38:44 +0200
commit5f26f772e5c4e833ffcb0599f54deda466d2a3e5 (patch)
tree2ef0183b42e2bd51feff52c2e6f97570514907b9 /fs/btrfs/extent-tree.c
parentBtrfs: add dir inode index (diff)
downloadkernel-qcow2-linux-5f26f772e5c4e833ffcb0599f54deda466d2a3e5.tar.gz
kernel-qcow2-linux-5f26f772e5c4e833ffcb0599f54deda466d2a3e5.tar.xz
kernel-qcow2-linux-5f26f772e5c4e833ffcb0599f54deda466d2a3e5.zip
Btrfs: more inode indexed directory work
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 688aa861a928..7c21f63f1b93 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -224,6 +224,7 @@ static int __free_extent(struct btrfs_trans_handle *trans, struct btrfs_root
path = btrfs_alloc_path();
BUG_ON(!path);
btrfs_init_path(path);
+
ret = btrfs_search_slot(trans, extent_root, &key, path, -1, 1);
if (ret) {
printk("failed to find %Lu\n", key.objectid);
@@ -363,8 +364,6 @@ static int find_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root
if (root->fs_info->last_insert.objectid > search_start)
search_start = root->fs_info->last_insert.objectid;
- path = btrfs_alloc_path();
-
check_failed:
btrfs_init_path(path);
ins->objectid = search_start;