From: Liu Bo Date: Fri, 14 Sep 2012 08:58:05 +0000 (-0600) Subject: Btrfs: cleanup for duplicated code in find_free_extent X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ab26e9d6c8a760aa5c4518eb2cb1a85516b3a4f7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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: trace_btrfs_reserve_extent(orig_root, block_group, search_start, num_bytes); - if (offset < search_start) - btrfs_add_free_space(used_block_group, offset, - search_start - offset); - BUG_ON(offset > search_start); if (used_block_group != block_group) btrfs_put_block_group(used_block_group); btrfs_put_block_group(block_group);