diff options
-rw-r--r-- | fs/btrfs/ctree.c | 6 | ||||
-rw-r--r-- | fs/btrfs/disk-io.c | 3 | ||||
-rw-r--r-- | fs/btrfs/disk-io.h | 3 | ||||
-rw-r--r-- | fs/btrfs/extent-tree.c | 3 | ||||
-rw-r--r-- | fs/btrfs/relocation.c | 9 |
5 files changed, 8 insertions, 16 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 39021bf2df9a..1b7e3545a596 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -2298,7 +2298,7 @@ static void reada_for_search(struct btrfs_root *root, | |||
2298 | if ((search <= target && target - search <= 65536) || | 2298 | if ((search <= target && target - search <= 65536) || |
2299 | (search > target && search - target <= 65536)) { | 2299 | (search > target && search - target <= 65536)) { |
2300 | gen = btrfs_node_ptr_generation(node, nr); | 2300 | gen = btrfs_node_ptr_generation(node, nr); |
2301 | readahead_tree_block(root, search, blocksize, gen); | 2301 | readahead_tree_block(root, search, blocksize); |
2302 | nread += blocksize; | 2302 | nread += blocksize; |
2303 | } | 2303 | } |
2304 | nscan++; | 2304 | nscan++; |
@@ -2350,9 +2350,9 @@ static noinline void reada_for_balance(struct btrfs_root *root, | |||
2350 | } | 2350 | } |
2351 | 2351 | ||
2352 | if (block1) | 2352 | if (block1) |
2353 | readahead_tree_block(root, block1, blocksize, 0); | 2353 | readahead_tree_block(root, block1, blocksize); |
2354 | if (block2) | 2354 | if (block2) |
2355 | readahead_tree_block(root, block2, blocksize, 0); | 2355 | readahead_tree_block(root, block2, blocksize); |
2356 | } | 2356 | } |
2357 | 2357 | ||
2358 | 2358 | ||
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 4780e6623c7b..ff83748d39da 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1062,8 +1062,7 @@ static const struct address_space_operations btree_aops = { | |||
1062 | .set_page_dirty = btree_set_page_dirty, | 1062 | .set_page_dirty = btree_set_page_dirty, |
1063 | }; | 1063 | }; |
1064 | 1064 | ||
1065 | int readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize, | 1065 | int readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize) |
1066 | u64 parent_transid) | ||
1067 | { | 1066 | { |
1068 | struct extent_buffer *buf = NULL; | 1067 | struct extent_buffer *buf = NULL; |
1069 | struct inode *btree_inode = root->fs_info->btree_inode; | 1068 | struct inode *btree_inode = root->fs_info->btree_inode; |
diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h index 14d06ee1e143..8cd6a53db621 100644 --- a/fs/btrfs/disk-io.h +++ b/fs/btrfs/disk-io.h | |||
@@ -46,8 +46,7 @@ struct btrfs_fs_devices; | |||
46 | 46 | ||
47 | struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr, | 47 | struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr, |
48 | u32 blocksize, u64 parent_transid); | 48 | u32 blocksize, u64 parent_transid); |
49 | int readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize, | 49 | int readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize); |
50 | u64 parent_transid); | ||
51 | int reada_tree_block_flagged(struct btrfs_root *root, u64 bytenr, u32 blocksize, | 50 | int reada_tree_block_flagged(struct btrfs_root *root, u64 bytenr, u32 blocksize, |
52 | int mirror_num, struct extent_buffer **eb); | 51 | int mirror_num, struct extent_buffer **eb); |
53 | struct extent_buffer *btrfs_find_create_tree_block(struct btrfs_root *root, | 52 | struct extent_buffer *btrfs_find_create_tree_block(struct btrfs_root *root, |
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 44d04979f071..058abd088f0f 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -7486,8 +7486,7 @@ static noinline void reada_walk_down(struct btrfs_trans_handle *trans, | |||
7486 | continue; | 7486 | continue; |
7487 | } | 7487 | } |
7488 | reada: | 7488 | reada: |
7489 | ret = readahead_tree_block(root, bytenr, blocksize, | 7489 | ret = readahead_tree_block(root, bytenr, blocksize); |
7490 | generation); | ||
7491 | if (ret) | 7490 | if (ret) |
7492 | break; | 7491 | break; |
7493 | nread++; | 7492 | nread++; |
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 2d221c46180c..16cb2b4a9620 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c | |||
@@ -2861,13 +2861,8 @@ static int reada_tree_block(struct reloc_control *rc, | |||
2861 | struct tree_block *block) | 2861 | struct tree_block *block) |
2862 | { | 2862 | { |
2863 | BUG_ON(block->key_ready); | 2863 | BUG_ON(block->key_ready); |
2864 | if (block->key.type == BTRFS_METADATA_ITEM_KEY) | 2864 | readahead_tree_block(rc->extent_root, block->bytenr, |
2865 | readahead_tree_block(rc->extent_root, block->bytenr, | 2865 | block->key.objectid); |
2866 | block->key.objectid, | ||
2867 | rc->extent_root->nodesize); | ||
2868 | else | ||
2869 | readahead_tree_block(rc->extent_root, block->bytenr, | ||
2870 | block->key.objectid, block->key.offset); | ||
2871 | return 0; | 2866 | return 0; |
2872 | } | 2867 | } |
2873 | 2868 | ||