aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-09 16:28:12 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:01 -0400
commitf188591e987e21b6f7f8864c66a02858b95b530e (patch)
tree996f04b7c8d1e8a626b123e7a2a217992d705c60 /fs/btrfs/extent_io.h
parent22c599485b1fdd95e4476a4752596a6cf6c6629a (diff)
Btrfs: Retry metadata reads in the face of checksum failures
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r--fs/btrfs/extent_io.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index 9d2991d1d3ce..8d6b8a14cc30 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -27,7 +27,8 @@ struct extent_state;
27struct extent_io_ops { 27struct extent_io_ops {
28 int (*fill_delalloc)(struct inode *inode, u64 start, u64 end); 28 int (*fill_delalloc)(struct inode *inode, u64 start, u64 end);
29 int (*writepage_io_hook)(struct page *page, u64 start, u64 end); 29 int (*writepage_io_hook)(struct page *page, u64 start, u64 end);
30 int (*submit_bio_hook)(struct inode *inode, int rw, struct bio *bio); 30 int (*submit_bio_hook)(struct inode *inode, int rw, struct bio *bio,
31 int mirror_num);
31 int (*merge_bio_hook)(struct page *page, unsigned long offset, 32 int (*merge_bio_hook)(struct page *page, unsigned long offset,
32 size_t size, struct bio *bio); 33 size_t size, struct bio *bio);
33 int (*readpage_io_hook)(struct page *page, u64 start, u64 end); 34 int (*readpage_io_hook)(struct page *page, u64 start, u64 end);
@@ -172,7 +173,7 @@ struct extent_buffer *find_extent_buffer(struct extent_io_tree *tree,
172void free_extent_buffer(struct extent_buffer *eb); 173void free_extent_buffer(struct extent_buffer *eb);
173int read_extent_buffer_pages(struct extent_io_tree *tree, 174int read_extent_buffer_pages(struct extent_io_tree *tree,
174 struct extent_buffer *eb, u64 start, int wait, 175 struct extent_buffer *eb, u64 start, int wait,
175 get_extent_t *get_extent); 176 get_extent_t *get_extent, int mirror_num);
176 177
177static inline void extent_buffer_get(struct extent_buffer *eb) 178static inline void extent_buffer_get(struct extent_buffer *eb)
178{ 179{