]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3cc5a14aa4cf8829359a4cf365e2d0a744315011
tree8ca5f83c0c43e505b872368877504fa95c6276ab
parent25479c29cd46290ecc404f0bafb813650e28919d
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