]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: make avail_*_alloc_bits fields dynamic
authorIlya Dryomov <idryomov@gmail.com>
Mon, 16 Jan 2012 20:04:47 +0000 (22:04 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Jan 2012 20:04:47 +0000 (22:04 +0200)
commit9ef125ae6a4f89cd48756c53d3795201a4487789
tree83887f41d8a876d919f74f83cda26eb18b10deca
parente427780a1ef32419ae5d480f1e0369cf8f59e15f
Btrfs: make avail_*_alloc_bits fields dynamic

Currently when new chunks are created respective avail_alloc_bits field
is updated to reflect profiles of all chunks present in the system.
However when chunks are removed profile bits are never cleared.

This patch clears profile bit of respective avail_alloc_bits field when
the last chunk with that profile is removed.  Restriper needs this to
properly operate when "downgrading".

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/btrfs/extent-tree.c