diff options
author | David Sterba <dsterba@suse.com> | 2017-02-17 10:24:29 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-28 08:29:24 -0500 |
commit | 20a7db8ab3f2057a518448b1728d504ffadef65e (patch) | |
tree | 09d4f1e8acb66b0f935306cbee04b572824df95c /fs/btrfs/extent_io.h | |
parent | 20c9801d393d9f077c476f40440b481daaccb9d6 (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.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index 1f8478dc9f8e..3e4fad4a909d 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h | |||
@@ -103,6 +103,7 @@ struct extent_io_ops { | |||
103 | int (*merge_bio_hook)(struct page *page, unsigned long offset, | 103 | int (*merge_bio_hook)(struct page *page, unsigned long offset, |
104 | size_t size, struct bio *bio, | 104 | size_t size, struct bio *bio, |
105 | unsigned long bio_flags); | 105 | unsigned long bio_flags); |
106 | int (*readpage_io_failed_hook)(struct page *page, int failed_mirror); | ||
106 | 107 | ||
107 | /* | 108 | /* |
108 | * Optional hooks, called if the pointer is not NULL | 109 | * Optional hooks, called if the pointer is not NULL |
@@ -110,7 +111,6 @@ struct extent_io_ops { | |||
110 | int (*fill_delalloc)(struct inode *inode, struct page *locked_page, | 111 | int (*fill_delalloc)(struct inode *inode, struct page *locked_page, |
111 | u64 start, u64 end, int *page_started, | 112 | u64 start, u64 end, int *page_started, |
112 | unsigned long *nr_written); | 113 | unsigned long *nr_written); |
113 | int (*readpage_io_failed_hook)(struct page *page, int failed_mirror); | ||
114 | 114 | ||
115 | int (*writepage_start_hook)(struct page *page, u64 start, u64 end); | 115 | int (*writepage_start_hook)(struct page *page, u64 start, u64 end); |
116 | void (*writepage_end_io_hook)(struct page *page, u64 start, u64 end, | 116 | void (*writepage_end_io_hook)(struct page *page, u64 start, u64 end, |