Skip to content

Commit

Permalink
Btrfs: cleanup for duplicated code in find_free_extent
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Liu Bo authored and Chris Mason committed Oct 4, 2012
1 parent 60376ce commit ab26e9d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -5828,10 +5828,6 @@ static noinline int find_free_extent(struct btrfs_trans_handle *trans,

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);
Expand Down

0 comments on commit ab26e9d

Please sign in to comment.