diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-04-09 16:28:12 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:01 -0400 |
commit | cea9e4452ebaf18dd0951e90dc84d82a5dee40b2 (patch) | |
tree | 94f6a3c4fa25ebdff1f46d8b41ab58ee92723609 /fs/btrfs/ctree.c | |
parent | d18a2c447524751137a12cc8ccaf9d1e0b7fa1b3 (diff) |
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/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 3c7891cf0d7..c92c6b0ee58 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -2025,8 +2025,10 @@ again: | |||
2025 | root->root_key.objectid, | 2025 | root->root_key.objectid, |
2026 | root_gen, disk_key.objectid, 0, | 2026 | root_gen, disk_key.objectid, 0, |
2027 | l->start, 0); | 2027 | l->start, 0); |
2028 | if (IS_ERR(right)) | 2028 | if (IS_ERR(right)) { |
2029 | BUG_ON(1); | ||
2029 | return PTR_ERR(right); | 2030 | return PTR_ERR(right); |
2031 | } | ||
2030 | 2032 | ||
2031 | memset_extent_buffer(right, 0, 0, sizeof(struct btrfs_header)); | 2033 | memset_extent_buffer(right, 0, 0, sizeof(struct btrfs_header)); |
2032 | btrfs_set_header_bytenr(right, right->start); | 2034 | btrfs_set_header_bytenr(right, right->start); |