Btrfs: find_free_dev_extent doesn't handle holes at the start of the device
authorYan Zheng <zheng.yan@oracle.com>
Fri, 24 Jul 2009 15:06:53 +0000 (11:06 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 24 Jul 2009 15:22:47 +0000 (11:22 -0400)
find_free_dev_extent does not properly handle the case where
the device is not complete free, and there is a free extent
at the beginning of the device.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c

Simple merge