btrfs: get fs_info from eb in repair_eb_io_failure
[sfrench/cifs-2.6.git] / fs / btrfs / extent_io.c
index 853a5fcec1932f2e9af3bed8c683beffd6b5fd5f..276c9250ca230d6b1924c0bf3c2b2beaf9c93b75 100644 (file)
@@ -2089,9 +2089,9 @@ int repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 start,
        return 0;
 }
 
-int repair_eb_io_failure(struct btrfs_fs_info *fs_info,
-                        struct extent_buffer *eb, int mirror_num)
+int btrfs_repair_eb_io_failure(struct extent_buffer *eb, int mirror_num)
 {
+       struct btrfs_fs_info *fs_info = eb->fs_info;
        u64 start = eb->start;
        int i, num_pages = num_extent_pages(eb);
        int ret = 0;