aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2012-09-14 04:58:05 -0400
committerChris Mason <chris.mason@fusionio.com>2012-10-04 09:39:57 -0400
commitab26e9d6c8a760aa5c4518eb2cb1a85516b3a4f7 (patch)
treecb2064502018b7836eb3d867a99261cd43be8746 /fs/btrfs/extent-tree.c
parent60376ce4a8396bc5cd777be05b6a9bf044520f42 (diff)
Btrfs: cleanup for duplicated code in find_free_extent
There is already an 'add free space' phrase in front of this one, we needn't to redo it. Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 0bc83b3f33db..27a6b3e6fa41 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -5828,10 +5828,6 @@ checks:
5828 5828
5829 trace_btrfs_reserve_extent(orig_root, block_group, 5829 trace_btrfs_reserve_extent(orig_root, block_group,
5830 search_start, num_bytes); 5830 search_start, num_bytes);
5831 if (offset < search_start)
5832 btrfs_add_free_space(used_block_group, offset,
5833 search_start - offset);
5834 BUG_ON(offset > search_start);
5835 if (used_block_group != block_group) 5831 if (used_block_group != block_group)
5836 btrfs_put_block_group(used_block_group); 5832 btrfs_put_block_group(used_block_group);
5837 btrfs_put_block_group(block_group); 5833 btrfs_put_block_group(block_group);