diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-14 14:14:43 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-14 14:14:43 -0400 |
commit | 123abc88c9087b9c5605566ee3491aaef17fd837 (patch) | |
tree | 3a8e83ac7a095d2b875664ee54cf7e24e977999b /fs/btrfs/extent-tree.c | |
parent | 4beb1b8b75a86373f6020103ab840448d14c8880 (diff) |
Btrfs: variable block size support
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 3767744f659e..d4f1ec328399 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -143,7 +143,6 @@ static int __free_extent(struct btrfs_root *root, u64 blocknr, u64 num_blocks) | |||
143 | struct btrfs_key key; | 143 | struct btrfs_key key; |
144 | struct btrfs_root *extent_root = root->extent_root; | 144 | struct btrfs_root *extent_root = root->extent_root; |
145 | int ret; | 145 | int ret; |
146 | struct btrfs_item *item; | ||
147 | struct btrfs_extent_item *ei; | 146 | struct btrfs_extent_item *ei; |
148 | struct btrfs_key ins; | 147 | struct btrfs_key ins; |
149 | u32 refs; | 148 | u32 refs; |
@@ -161,9 +160,8 @@ static int __free_extent(struct btrfs_root *root, u64 blocknr, u64 num_blocks) | |||
161 | printf("failed to find %Lu\n", key.objectid); | 160 | printf("failed to find %Lu\n", key.objectid); |
162 | BUG(); | 161 | BUG(); |
163 | } | 162 | } |
164 | item = path.nodes[0]->leaf.items + path.slots[0]; | 163 | ei = btrfs_item_ptr(&path.nodes[0]->leaf, path.slots[0], |
165 | ei = (struct btrfs_extent_item *)(path.nodes[0]->leaf.data + | 164 | struct btrfs_extent_item); |
166 | btrfs_item_offset(item)); | ||
167 | BUG_ON(ei->refs == 0); | 165 | BUG_ON(ei->refs == 0); |
168 | refs = btrfs_extent_refs(ei) - 1; | 166 | refs = btrfs_extent_refs(ei) - 1; |
169 | btrfs_set_extent_refs(ei, refs); | 167 | btrfs_set_extent_refs(ei, refs); |