aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.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/volumes.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/volumes.h')
-rw-r--r--fs/btrfs/volumes.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
index 10ca0104750c..3d5d0a9cb827 100644
--- a/fs/btrfs/volumes.h
+++ b/fs/btrfs/volumes.h
@@ -93,7 +93,7 @@ int btrfs_alloc_dev_extent(struct btrfs_trans_handle *trans,
93 u64 owner, u64 num_bytes, u64 *start); 93 u64 owner, u64 num_bytes, u64 *start);
94int btrfs_map_block(struct btrfs_mapping_tree *map_tree, int rw, 94int btrfs_map_block(struct btrfs_mapping_tree *map_tree, int rw,
95 u64 logical, u64 *length, 95 u64 logical, u64 *length,
96 struct btrfs_multi_bio **multi_ret); 96 struct btrfs_multi_bio **multi_ret, int mirror_num);
97int btrfs_read_sys_array(struct btrfs_root *root); 97int btrfs_read_sys_array(struct btrfs_root *root);
98int btrfs_read_chunk_tree(struct btrfs_root *root); 98int btrfs_read_chunk_tree(struct btrfs_root *root);
99int btrfs_alloc_chunk(struct btrfs_trans_handle *trans, 99int btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
@@ -101,7 +101,8 @@ int btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
101 u64 *num_bytes, u64 type); 101 u64 *num_bytes, u64 type);
102void btrfs_mapping_init(struct btrfs_mapping_tree *tree); 102void btrfs_mapping_init(struct btrfs_mapping_tree *tree);
103void btrfs_mapping_tree_free(struct btrfs_mapping_tree *tree); 103void btrfs_mapping_tree_free(struct btrfs_mapping_tree *tree);
104int btrfs_map_bio(struct btrfs_root *root, int rw, struct bio *bio); 104int btrfs_map_bio(struct btrfs_root *root, int rw, struct bio *bio,
105 int mirror_num);
105int btrfs_read_super_device(struct btrfs_root *root, struct extent_buffer *buf); 106int btrfs_read_super_device(struct btrfs_root *root, struct extent_buffer *buf);
106int btrfs_open_devices(struct btrfs_fs_devices *fs_devices, 107int btrfs_open_devices(struct btrfs_fs_devices *fs_devices,
107 int flags, void *holder); 108 int flags, void *holder);
@@ -112,4 +113,5 @@ int btrfs_add_device(struct btrfs_trans_handle *trans,
112 struct btrfs_root *root, 113 struct btrfs_root *root,
113 struct btrfs_device *device); 114 struct btrfs_device *device);
114int btrfs_cleanup_fs_uuids(void); 115int btrfs_cleanup_fs_uuids(void);
116int btrfs_num_copies(struct btrfs_mapping_tree *map_tree, u64 logical, u64 len);
115#endif 117#endif