Btrfs: Fix duplicate ENOSPC checks in find_free_extent
authorChris Mason <chris.mason@oracle.com>
Mon, 17 Sep 2007 15:00:51 +0000 (11:00 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:56 +0000 (11:03 -0400)
commitcf67582bb2ec364d71b3e4f8e49de98d8c3c832e
tree9f51995b1877953c9d15eee72d44881e6c4962bc
parentd3c2fdcf7b79079f60ac64e61d886964d4647910
Btrfs: Fix duplicate ENOSPC checks in find_free_extent

find_free_extent would fail to wrap around to the start of the drive because
it was doing the enospc case checking twice in some cases, causing it
to return -ENOSPC early.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c