diff options
author | David Sterba <dsterba@suse.cz> | 2014-06-15 00:49:36 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-10-02 16:30:40 +0200 |
commit | 6197d86eabb844c1a9c99956d4e6b0f8eb548ad3 (patch) | |
tree | d26ec3e9070147d7c411f711be4b0dec6a711cd7 /fs/btrfs/disk-io.c | |
parent | 58dc4ce4325108b35425ffd30e6acfad9644d49d (diff) | |
download | blackbird-op-linux-6197d86eabb844c1a9c99956d4e6b0f8eb548ad3.tar.gz blackbird-op-linux-6197d86eabb844c1a9c99956d4e6b0f8eb548ad3.zip |
btrfs: return void from readahead_tree_block
Errors in readahead are not fatal and ignored elsewhere in the code.
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index ff83748d39da..332f63518156 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -1062,19 +1062,17 @@ static const struct address_space_operations btree_aops = { .set_page_dirty = btree_set_page_dirty, }; -int readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize) +void readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize) { struct extent_buffer *buf = NULL; struct inode *btree_inode = root->fs_info->btree_inode; - int ret = 0; buf = btrfs_find_create_tree_block(root, bytenr, blocksize); if (!buf) - return 0; + return; read_extent_buffer_pages(&BTRFS_I(btree_inode)->io_tree, buf, 0, WAIT_NONE, btree_get_extent, 0); free_extent_buffer(buf); - return ret; } int reada_tree_block_flagged(struct btrfs_root *root, u64 bytenr, u32 blocksize, |