aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-17 10:24:29 -0500
committerDavid Sterba <dsterba@suse.com>2017-02-28 08:29:24 -0500
commit20a7db8ab3f2057a518448b1728d504ffadef65e (patch)
tree09d4f1e8acb66b0f935306cbee04b572824df95c /fs/btrfs/extent_io.c
parent20c9801d393d9f077c476f40440b481daaccb9d6 (diff)
btrfs: add dummy callback for readpage_io_failed and drop checks
Make extent_io_ops::readpage_io_failed_hook callback mandatory and define a dummy function for btrfs_extent_io_ops. As the failed IO callback is not performance critical, the branch vs extra trade off does not hurt. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 0786985a8cc5..28e81922a21c 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2581,7 +2581,7 @@ static void end_bio_extent_readpage(struct bio *bio)
2581 if (likely(uptodate)) 2581 if (likely(uptodate))
2582 goto readpage_ok; 2582 goto readpage_ok;
2583 2583
2584 if (tree->ops && tree->ops->readpage_io_failed_hook) { 2584 if (tree->ops) {
2585 ret = tree->ops->readpage_io_failed_hook(page, mirror); 2585 ret = tree->ops->readpage_io_failed_hook(page, mirror);
2586 if (!ret && !bio->bi_error) 2586 if (!ret && !bio->bi_error)
2587 uptodate = 1; 2587 uptodate = 1;