Btrfs: skip allocation attempt from empty cluster
authorAlexandre Oliva <[email protected]>
Wed, 30 Nov 2011 18:43:00 +0000 (13:43 -0500)
committerChris Mason <[email protected]>
Wed, 30 Nov 2011 18:43:00 +0000 (13:43 -0500)
commitbe064d113906f04ea13088a8260e1e68ae0a4050
tree0adeb137e165fbcc5c9ed66d00189ef3194781f4
parent425d83156ca27f74e2cc3f370138038c3c8947f8
Btrfs: skip allocation attempt from empty cluster

If we don't have a cluster, don't bother trying to allocate from it,
jumping right away to the attempt to allocate a new cluster.

Signed-off-by: Alexandre Oliva <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/extent-tree.c