diff options
author | David Sterba <dsterba@suse.com> | 2017-08-25 18:07:15 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-09-08 16:15:05 +0200 |
commit | 145a5969bd5c8a276128b54217d0a6459c8a3af8 (patch) | |
tree | 7a6d29ae0ced37e375381413941dbaf88ea0058f /ctree.c | |
parent | 2030f497516e6e91f0884c12bbf0b91a6c6b83e4 (diff) |
btrfs-progs: drop blocksize argument from readahead_tree_block
Tree blocks are always nodesize. As readahead is only an optimization,
exact size is not required and is only advisory.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'ctree.c')
-rw-r--r-- | ctree.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1018,7 +1018,7 @@ void reada_for_search(struct btrfs_root *root, struct btrfs_path *path, if ((search >= lowest_read && search <= highest_read) || (search < lowest_read && lowest_read - search <= 32768) || (search > highest_read && search - highest_read <= 32768)) { - readahead_tree_block(fs_info, search, fs_info->nodesize, + readahead_tree_block(fs_info, search, btrfs_node_ptr_generation(node, nr)); nread += fs_info->nodesize; } |