diff options
author | Eric Sandeen <sandeen@redhat.com> | 2013-08-02 19:52:43 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-09-03 19:40:46 +0200 |
commit | 4e8c4d4ba72cba988a072246ce6de50e2e190c68 (patch) | |
tree | 4ced09fdcf5aaf89db28ce7c04554ec89adac388 /root-tree.c | |
parent | 9db49418b367ede03954d5a42c92e8dfcc10f7ad (diff) |
btrfs-progs: drop unused parameter from btrfs_release_path
Port of commit b3b4aa7 to userspace.
parameter tree root it's not used since commit
5f39d397dfbe140a14edecd4e73c34ce23c4f9ee ("Btrfs: Create extent_buffer
interface for large blocksizes")
This gets userspace a tad closer to kernelspace by removing
this unused parameter that was all over the codebase...
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'root-tree.c')
-rw-r--r-- | root-tree.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/root-tree.c b/root-tree.c index 09873a43..ea8c6bbb 100644 --- a/root-tree.c +++ b/root-tree.c @@ -55,7 +55,7 @@ int btrfs_find_last_root(struct btrfs_root *root, u64 objectid, memcpy(key, &found_key, sizeof(found_key)); ret = 0; out: - btrfs_release_path(root, path); + btrfs_release_path(path); btrfs_free_path(path); return ret; } @@ -88,7 +88,7 @@ int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root * for the added fields. */ if (old_len < sizeof(*item)) { - btrfs_release_path(root, path); + btrfs_release_path(path); ret = btrfs_search_slot(trans, root, key, path, -1, 1); if (ret < 0) { @@ -99,7 +99,7 @@ int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root if (ret < 0) { goto out; } - btrfs_release_path(root, path); + btrfs_release_path(path); ret = btrfs_insert_empty_item(trans, root, path, key, sizeof(*item)); if (ret < 0) { @@ -119,7 +119,7 @@ int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root write_extent_buffer(l, item, ptr, sizeof(*item)); btrfs_mark_buffer_dirty(path->nodes[0]); out: - btrfs_release_path(root, path); + btrfs_release_path(path); btrfs_free_path(path); return ret; } @@ -160,7 +160,7 @@ int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, BUG_ON(refs != 0); ret = btrfs_del_item(trans, root, path); out: - btrfs_release_path(root, path); + btrfs_release_path(path); btrfs_free_path(path); return ret; } |