summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorChris Mason2008-04-09 22:28:12 +0200
committerChris Mason2008-09-25 17:04:01 +0200
commitcea9e4452ebaf18dd0951e90dc84d82a5dee40b2 (patch)
tree94f6a3c4fa25ebdff1f46d8b41ab58ee92723609 /fs/btrfs/inode.c
parentBtrfs: Fix allocation profile init (diff)
downloadkernel-qcow2-linux-cea9e4452ebaf18dd0951e90dc84d82a5dee40b2.tar.gz
kernel-qcow2-linux-cea9e4452ebaf18dd0951e90dc84d82a5dee40b2.tar.xz
kernel-qcow2-linux-cea9e4452ebaf18dd0951e90dc84d82a5dee40b2.zip
Change btrfs_map_block to return a structure with mappings for all stripes
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index a8ae68c6fbb8..7ae677d8a6de 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -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;
}