Change btrfs_map_block to return a structure with mappings for all stripes
[deliverable/linux.git] / fs / btrfs / inode.c
index a8ae68c6fbb844f61d5cc42150f13993d032cc49..7ae677d8a6dea67774abd294373e4d9674504825 100644 (file)
@@ -301,12 +301,9 @@ int btrfs_merge_bio_hook(struct page *page, unsigned long offset,
 {
        struct btrfs_root *root = BTRFS_I(page->mapping->host)->root;
        struct btrfs_mapping_tree *map_tree;
-       struct btrfs_device *dev;
        u64 logical = bio->bi_sector << 9;
-       u64 physical;
        u64 length = 0;
        u64 map_length;
-       int total_devs;
        struct bio_vec *bvec;
        int i;
        int ret;
@@ -316,8 +313,9 @@ int btrfs_merge_bio_hook(struct page *page, unsigned long offset,
        }
        map_tree = &root->fs_info->mapping_tree;
        map_length = length;
-       ret = btrfs_map_block(map_tree, READ, 0, logical, &physical,
-                             &map_length, &dev, &total_devs);
+       ret = btrfs_map_block(map_tree, READ, logical,
+                             &map_length, NULL);
+
        if (map_length < length + size) {
                return 1;
        }
This page took 0.028278 seconds and 5 git commands to generate.