diff mbox

Btrfs: remove unused argument from read_block_for_search()

Message ID 1391010725-4604-1-git-send-email-wangshilong1991@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Wang Shilong Jan. 29, 2014, 3:52 p.m. UTC
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 mbox

Patch

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;