diff options
author | David Sterba <dsterba@suse.cz> | 2011-04-20 19:20:15 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2011-05-02 07:57:22 -0400 |
commit | b3b4aa74b58bded927f579fff787fb6fa1c0393c (patch) | |
tree | 30dab4ab26558992dd8b6b212bef805de11c4c29 /fs/btrfs/ctree.c | |
parent | ba14419264684b290f0d0b7f48d26eafb11fc0c6 (diff) |
btrfs: drop unused parameter from btrfs_release_path
parameter tree root it's not used since commit
5f39d397dfbe140a14edecd4e73c34ce23c4f9ee ("Btrfs: Create extent_buffer
interface for large blocksizes")
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index a36c87db4dc4..fad8f23d70f0 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -107,7 +107,7 @@ void btrfs_free_path(struct btrfs_path *p) | |||
107 | { | 107 | { |
108 | if (!p) | 108 | if (!p) |
109 | return; | 109 | return; |
110 | btrfs_release_path(NULL, p); | 110 | btrfs_release_path(p); |
111 | kmem_cache_free(btrfs_path_cachep, p); | 111 | kmem_cache_free(btrfs_path_cachep, p); |
112 | } | 112 | } |
113 | 113 | ||
@@ -117,7 +117,7 @@ void btrfs_free_path(struct btrfs_path *p) | |||
117 | * | 117 | * |
118 | * It is safe to call this on paths that no locks or extent buffers held. | 118 | * It is safe to call this on paths that no locks or extent buffers held. |
119 | */ | 119 | */ |
120 | noinline void btrfs_release_path(struct btrfs_root *root, struct btrfs_path *p) | 120 | noinline void btrfs_release_path(struct btrfs_path *p) |
121 | { | 121 | { |
122 | int i; | 122 | int i; |
123 | 123 | ||
@@ -1328,7 +1328,7 @@ static noinline int reada_for_balance(struct btrfs_root *root, | |||
1328 | ret = -EAGAIN; | 1328 | ret = -EAGAIN; |
1329 | 1329 | ||
1330 | /* release the whole path */ | 1330 | /* release the whole path */ |
1331 | btrfs_release_path(root, path); | 1331 | btrfs_release_path(path); |
1332 | 1332 | ||
1333 | /* read the blocks */ | 1333 | /* read the blocks */ |
1334 | if (block1) | 1334 | if (block1) |
@@ -1475,7 +1475,7 @@ read_block_for_search(struct btrfs_trans_handle *trans, | |||
1475 | return 0; | 1475 | return 0; |
1476 | } | 1476 | } |
1477 | free_extent_buffer(tmp); | 1477 | free_extent_buffer(tmp); |
1478 | btrfs_release_path(NULL, p); | 1478 | btrfs_release_path(p); |
1479 | return -EIO; | 1479 | return -EIO; |
1480 | } | 1480 | } |
1481 | } | 1481 | } |
@@ -1494,7 +1494,7 @@ read_block_for_search(struct btrfs_trans_handle *trans, | |||
1494 | if (p->reada) | 1494 | if (p->reada) |
1495 | reada_for_search(root, p, level, slot, key->objectid); | 1495 | reada_for_search(root, p, level, slot, key->objectid); |
1496 | 1496 | ||
1497 | btrfs_release_path(NULL, p); | 1497 | btrfs_release_path(p); |
1498 | 1498 | ||
1499 | ret = -EAGAIN; | 1499 | ret = -EAGAIN; |
1500 | tmp = read_tree_block(root, blocknr, blocksize, 0); | 1500 | tmp = read_tree_block(root, blocknr, blocksize, 0); |
@@ -1563,7 +1563,7 @@ setup_nodes_for_search(struct btrfs_trans_handle *trans, | |||
1563 | } | 1563 | } |
1564 | b = p->nodes[level]; | 1564 | b = p->nodes[level]; |
1565 | if (!b) { | 1565 | if (!b) { |
1566 | btrfs_release_path(NULL, p); | 1566 | btrfs_release_path(p); |
1567 | goto again; | 1567 | goto again; |
1568 | } | 1568 | } |
1569 | BUG_ON(btrfs_header_nritems(b) == 1); | 1569 | BUG_ON(btrfs_header_nritems(b) == 1); |
@@ -1753,7 +1753,7 @@ done: | |||
1753 | if (!p->leave_spinning) | 1753 | if (!p->leave_spinning) |
1754 | btrfs_set_path_blocking(p); | 1754 | btrfs_set_path_blocking(p); |
1755 | if (ret < 0) | 1755 | if (ret < 0) |
1756 | btrfs_release_path(root, p); | 1756 | btrfs_release_path(p); |
1757 | return ret; | 1757 | return ret; |
1758 | } | 1758 | } |
1759 | 1759 | ||
@@ -3026,7 +3026,7 @@ static noinline int setup_leaf_for_split(struct btrfs_trans_handle *trans, | |||
3026 | struct btrfs_file_extent_item); | 3026 | struct btrfs_file_extent_item); |
3027 | extent_len = btrfs_file_extent_num_bytes(leaf, fi); | 3027 | extent_len = btrfs_file_extent_num_bytes(leaf, fi); |
3028 | } | 3028 | } |
3029 | btrfs_release_path(root, path); | 3029 | btrfs_release_path(path); |
3030 | 3030 | ||
3031 | path->keep_locks = 1; | 3031 | path->keep_locks = 1; |
3032 | path->search_for_split = 1; | 3032 | path->search_for_split = 1; |
@@ -3948,7 +3948,7 @@ int btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path) | |||
3948 | else | 3948 | else |
3949 | return 1; | 3949 | return 1; |
3950 | 3950 | ||
3951 | btrfs_release_path(root, path); | 3951 | btrfs_release_path(path); |
3952 | ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); | 3952 | ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); |
3953 | if (ret < 0) | 3953 | if (ret < 0) |
3954 | return ret; | 3954 | return ret; |
@@ -4072,7 +4072,7 @@ find_next_key: | |||
4072 | sret = btrfs_find_next_key(root, path, min_key, level, | 4072 | sret = btrfs_find_next_key(root, path, min_key, level, |
4073 | cache_only, min_trans); | 4073 | cache_only, min_trans); |
4074 | if (sret == 0) { | 4074 | if (sret == 0) { |
4075 | btrfs_release_path(root, path); | 4075 | btrfs_release_path(path); |
4076 | goto again; | 4076 | goto again; |
4077 | } else { | 4077 | } else { |
4078 | goto out; | 4078 | goto out; |
@@ -4151,7 +4151,7 @@ next: | |||
4151 | btrfs_node_key_to_cpu(c, &cur_key, slot); | 4151 | btrfs_node_key_to_cpu(c, &cur_key, slot); |
4152 | 4152 | ||
4153 | orig_lowest = path->lowest_level; | 4153 | orig_lowest = path->lowest_level; |
4154 | btrfs_release_path(root, path); | 4154 | btrfs_release_path(path); |
4155 | path->lowest_level = level; | 4155 | path->lowest_level = level; |
4156 | ret = btrfs_search_slot(NULL, root, &cur_key, path, | 4156 | ret = btrfs_search_slot(NULL, root, &cur_key, path, |
4157 | 0, 0); | 4157 | 0, 0); |
@@ -4228,7 +4228,7 @@ int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path) | |||
4228 | again: | 4228 | again: |
4229 | level = 1; | 4229 | level = 1; |
4230 | next = NULL; | 4230 | next = NULL; |
4231 | btrfs_release_path(root, path); | 4231 | btrfs_release_path(path); |
4232 | 4232 | ||
4233 | path->keep_locks = 1; | 4233 | path->keep_locks = 1; |
4234 | 4234 | ||
@@ -4284,7 +4284,7 @@ again: | |||
4284 | goto again; | 4284 | goto again; |
4285 | 4285 | ||
4286 | if (ret < 0) { | 4286 | if (ret < 0) { |
4287 | btrfs_release_path(root, path); | 4287 | btrfs_release_path(path); |
4288 | goto done; | 4288 | goto done; |
4289 | } | 4289 | } |
4290 | 4290 | ||
@@ -4323,7 +4323,7 @@ again: | |||
4323 | goto again; | 4323 | goto again; |
4324 | 4324 | ||
4325 | if (ret < 0) { | 4325 | if (ret < 0) { |
4326 | btrfs_release_path(root, path); | 4326 | btrfs_release_path(path); |
4327 | goto done; | 4327 | goto done; |
4328 | } | 4328 | } |
4329 | 4329 | ||