mirror of https://gitee.com/openkylin/linux.git
btrfs: remove unused parameter from read_block_for_search
Never used in that function. Reviewed-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
6655bc3de1
commit
cda79c545e
|
@ -2440,7 +2440,7 @@ noinline void btrfs_unlock_up_safe(struct btrfs_path *path, int level)
|
||||||
static int
|
static int
|
||||||
read_block_for_search(struct btrfs_root *root, struct btrfs_path *p,
|
read_block_for_search(struct btrfs_root *root, struct btrfs_path *p,
|
||||||
struct extent_buffer **eb_ret, int level, int slot,
|
struct extent_buffer **eb_ret, int level, int slot,
|
||||||
const struct btrfs_key *key, u64 time_seq)
|
const struct btrfs_key *key)
|
||||||
{
|
{
|
||||||
struct btrfs_fs_info *fs_info = root->fs_info;
|
struct btrfs_fs_info *fs_info = root->fs_info;
|
||||||
u64 blocknr;
|
u64 blocknr;
|
||||||
|
@ -2871,7 +2871,7 @@ int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root,
|
||||||
}
|
}
|
||||||
|
|
||||||
err = read_block_for_search(root, p, &b, level,
|
err = read_block_for_search(root, p, &b, level,
|
||||||
slot, key, 0);
|
slot, key);
|
||||||
if (err == -EAGAIN)
|
if (err == -EAGAIN)
|
||||||
goto again;
|
goto again;
|
||||||
if (err) {
|
if (err) {
|
||||||
|
@ -3015,7 +3015,7 @@ int btrfs_search_old_slot(struct btrfs_root *root, const struct btrfs_key *key,
|
||||||
}
|
}
|
||||||
|
|
||||||
err = read_block_for_search(root, p, &b, level,
|
err = read_block_for_search(root, p, &b, level,
|
||||||
slot, key, time_seq);
|
slot, key);
|
||||||
if (err == -EAGAIN)
|
if (err == -EAGAIN)
|
||||||
goto again;
|
goto again;
|
||||||
if (err) {
|
if (err) {
|
||||||
|
@ -5786,7 +5786,7 @@ int btrfs_next_old_leaf(struct btrfs_root *root, struct btrfs_path *path,
|
||||||
next = c;
|
next = c;
|
||||||
next_rw_lock = path->locks[level];
|
next_rw_lock = path->locks[level];
|
||||||
ret = read_block_for_search(root, path, &next, level,
|
ret = read_block_for_search(root, path, &next, level,
|
||||||
slot, &key, 0);
|
slot, &key);
|
||||||
if (ret == -EAGAIN)
|
if (ret == -EAGAIN)
|
||||||
goto again;
|
goto again;
|
||||||
|
|
||||||
|
@ -5836,7 +5836,7 @@ int btrfs_next_old_leaf(struct btrfs_root *root, struct btrfs_path *path,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
ret = read_block_for_search(root, path, &next, level,
|
ret = read_block_for_search(root, path, &next, level,
|
||||||
0, &key, 0);
|
0, &key);
|
||||||
if (ret == -EAGAIN)
|
if (ret == -EAGAIN)
|
||||||
goto again;
|
goto again;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue