]> 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)
commitee84d0a9b36e67d608d0572b75302ffe1d6dc1d1
tree83887f41d8a876d919f74f83cda26eb18b10deca
parent2f2f02873f21ba6beab0701cc86be9f3af2a9e52
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