summaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2017-01-30 12:23:42 -0800
committerDavid Sterba <dsterba@suse.com>2017-02-14 15:50:59 +0100
commitd07b85284f83dee7955cb43dc66a37542a725c12 (patch)
tree8cfbe7b02487f81438fc259d971da2807ea3afac /fs/btrfs/ctree.c
parentbcf934894f1f4505d0186ec7569949de6e8dd97c (diff)
Btrfs: remove unused trans in read_block_for_search
@trans is not used at all, this removes it. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 72dd200f0478..fbeff20eb194 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -2438,10 +2438,9 @@ noinline void btrfs_unlock_up_safe(struct btrfs_path *path, int level)
* reada. -EAGAIN is returned and the search must be repeated.
*/
static int
-read_block_for_search(struct btrfs_trans_handle *trans,
- struct btrfs_root *root, struct btrfs_path *p,
- struct extent_buffer **eb_ret, int level, int slot,
- const struct btrfs_key *key, u64 time_seq)
+read_block_for_search(struct btrfs_root *root, struct btrfs_path *p,
+ struct extent_buffer **eb_ret, int level, int slot,
+ const struct btrfs_key *key, u64 time_seq)
{
struct btrfs_fs_info *fs_info = root->fs_info;
u64 blocknr;
@@ -2871,8 +2870,8 @@ cow_done:
goto done;
}
- err = read_block_for_search(trans, root, p,
- &b, level, slot, key, 0);
+ err = read_block_for_search(root, p, &b, level,
+ slot, key, 0);
if (err == -EAGAIN)
goto again;
if (err) {
@@ -3015,7 +3014,7 @@ again:
goto done;
}
- err = read_block_for_search(NULL, root, p, &b, level,
+ err = read_block_for_search(root, p, &b, level,
slot, key, time_seq);
if (err == -EAGAIN)
goto again;
@@ -5786,7 +5785,7 @@ again:
next = c;
next_rw_lock = path->locks[level];
- ret = read_block_for_search(NULL, root, path, &next, level,
+ ret = read_block_for_search(root, path, &next, level,
slot, &key, 0);
if (ret == -EAGAIN)
goto again;
@@ -5836,7 +5835,7 @@ again:
if (!level)
break;
- ret = read_block_for_search(NULL, root, path, &next, level,
+ ret = read_block_for_search(root, path, &next, level,
0, &key, 0);
if (ret == -EAGAIN)
goto again;