diff options
author | 2018-11-22 10:17:49 +0200 | |
---|---|---|
committer | 2018-12-17 14:51:41 +0100 | |
commit | 78e62c02abb94e49ea739226a70325a6bf7a6603 (patch) | |
tree | dddca23b63c11e174d8942be02c6e5e69e031648 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: remove btrfs_bio_end_io_t (diff) | |
download | linux-rng-78e62c02abb94e49ea739226a70325a6bf7a6603.tar.xz linux-rng-78e62c02abb94e49ea739226a70325a6bf7a6603.zip |
btrfs: Remove extent_io_ops::readpage_io_failed_hook
For data inodes this hook does nothing but to return -EAGAIN which is
used to signal to the endio routines that this bio belongs to a data
inode. If this is the case the actual retrying is handled by
bio_readpage_error. Alternatively, if this bio belongs to the btree
inode then btree_io_failed_hook just does some cleanup and doesn't retry
anything.
This patch simplifies the code flow by eliminating
readpage_io_failed_hook and instead open-coding btree_io_failed_hook in
end_bio_extent_readpage. Also eliminate some needless checks since IO is
always performed on either data inode or btree inode, both of which are
guaranteed to have their extent_io_tree::ops set.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions