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)
commit1fcbac581be375ca0a686f72ee2b7fd1dbf386e7
tree64789d4143fdb02acd428ec928ed18239c95c37b
parent20736abaa361bea488df6a1f66f6b37fb01107b9
Btrfs: find_free_dev_extent doesn't handle holes at the start of the device

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