]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: heed alloc_start
authorArne Jansen <sensille@gmx.net>
Tue, 12 Apr 2011 09:01:20 +0000 (11:01 +0200)
committerArne Jansen <sensille@gmx.net>
Fri, 13 May 2011 13:36:12 +0000 (15:36 +0200)
commit7982bc1011295bb637bc7ef98d2560496b613749
treeba18ea840825d8c2bc6199fda17bb44f52fb85c4
parenta7619cd38833153c6a513205287bce72bce5f18d
btrfs: heed alloc_start

currently alloc_start is disregarded if the requested
chunk size is bigger than (device size - alloc_start),
but smaller than the device size.
The only situation where I see this could have made sense
was when a chunk equal the size of the device has been
requested. This was possible as the allocator failed to
take alloc_start into account when calculating the request
chunk size. As this gets fixed by this patch, the workaround
is not necessary anymore.
fs/btrfs/volumes.c