* [PATCH] Btrfs: remove unused argument from read_block_for_search()
@ 2014-01-29 15:52 Wang Shilong
0 siblings, 0 replies; only message in thread
From: Wang Shilong @ 2014-01-29 15:52 UTC (permalink / raw)
To: linux-btrfs
From: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
@time_seq is no longer used in read_block_for_search(), remove it.
Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
---
fs/btrfs/ctree.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 30f5b11..b484cd5 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -2478,7 +2478,7 @@ 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,
- struct btrfs_key *key, u64 time_seq)
+ struct btrfs_key *key)
{
u64 blocknr;
u64 gen;
@@ -2906,7 +2906,7 @@ cow_done:
}
err = read_block_for_search(trans, root, p,
- &b, level, slot, key, 0);
+ &b, level, slot, key);
if (err == -EAGAIN)
goto again;
if (err) {
@@ -3049,7 +3049,7 @@ again:
}
err = read_block_for_search(NULL, root, p, &b, level,
- slot, key, time_seq);
+ slot, key);
if (err == -EAGAIN)
goto again;
if (err) {
@@ -5833,7 +5833,7 @@ again:
next = c;
next_rw_lock = path->locks[level];
ret = read_block_for_search(NULL, root, path, &next, level,
- slot, &key, 0);
+ slot, &key);
if (ret == -EAGAIN)
goto again;
@@ -5883,7 +5883,7 @@ again:
break;
ret = read_block_for_search(NULL, root, path, &next, level,
- 0, &key, 0);
+ 0, &key);
if (ret == -EAGAIN)
goto again;
--
1.8.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-29 15:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-29 15:52 [PATCH] Btrfs: remove unused argument from read_block_for_search() Wang Shilong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).