Btrfs: add btrfs_read_dev_one_super() to read one specific SB
[linux-2.6-block.git] / fs / btrfs / disk-io.h
index bdfb479ea85955112305d0c30a17af9c7647daed..adeb31830b9cc1d49d145fdaa4f476c23dc81aa7 100644 (file)
@@ -60,6 +60,8 @@ void close_ctree(struct btrfs_root *root);
 int write_ctree_super(struct btrfs_trans_handle *trans,
                      struct btrfs_root *root, int max_mirrors);
 struct buffer_head *btrfs_read_dev_super(struct block_device *bdev);
+int btrfs_read_dev_one_super(struct block_device *bdev, int copy_num,
+                       struct buffer_head **bh_ret);
 int btrfs_commit_super(struct btrfs_root *root);
 struct extent_buffer *btrfs_find_tree_block(struct btrfs_fs_info *fs_info,
                                            u64 bytenr);