diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-02 09:47:58 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-02 09:47:58 -0500 |
commit | f0930a37f1c096c3a8f6a17b1e251c7fdf4d4457 (patch) | |
tree | 51b569606b25cd5ef903f9ef97734a1f6ec291d2 /fs/btrfs/extent-tree.c | |
parent | ed2ff2cba766dfe7976a0113f667c9a0a50dff02 (diff) |
Btrfs: Fix extent code to use merge during delete
Remove implicit commit in del_item and insert_item
Add implicit commit to close()
Add commit op in random-test
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 074f4b182f16..fb2144496215 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -39,7 +39,7 @@ static int del_pending_extents(struct ctree_root *extent_root) | |||
39 | key.flags = 0; | 39 | key.flags = 0; |
40 | key.offset = 1; | 40 | key.offset = 1; |
41 | init_path(&path); | 41 | init_path(&path); |
42 | ret = search_slot(extent_root, &key, &path, 0); | 42 | ret = search_slot(extent_root, &key, &path, -1); |
43 | if (ret) { | 43 | if (ret) { |
44 | print_tree(extent_root, extent_root->node); | 44 | print_tree(extent_root, extent_root->node); |
45 | printf("unable to find %Lu\n", key.objectid); | 45 | printf("unable to find %Lu\n", key.objectid); |
@@ -83,7 +83,7 @@ int free_extent(struct ctree_root *root, u64 blocknr, u64 num_blocks) | |||
83 | return 0; | 83 | return 0; |
84 | } | 84 | } |
85 | init_path(&path); | 85 | init_path(&path); |
86 | ret = search_slot(extent_root, &key, &path, 0); | 86 | ret = search_slot(extent_root, &key, &path, -1); |
87 | if (ret) { | 87 | if (ret) { |
88 | print_tree(extent_root, extent_root->node); | 88 | print_tree(extent_root, extent_root->node); |
89 | printf("failed to find %Lu\n", key.objectid); | 89 | printf("failed to find %Lu\n", key.objectid); |