]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/btrfs/extent-tree.c
btrfs: restructure find_free_dev_extent()
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 5 Jan 2011 10:07:26 +0000 (10:07 +0000)
committerChris Mason <chris.mason@oracle.com>
Sun, 16 Jan 2011 16:30:19 +0000 (11:30 -0500)
commit7bfc837df935d850fe996dfe92ef48975cd4170a
tree8ca5f83c0c43e505b872368877504fa95c6276ab
parent1974a3b42d8cf7a9c74f1e0310c593023617037a
btrfs: restructure find_free_dev_extent()

- make it return the start position and length of the max free space when it can
  not find a suitable free space.
- make it more readability

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c
fs/btrfs/volumes.c