]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: tweak free space tree bitmap allocation
authorDavid Sterba <dsterba@suse.com>
Fri, 22 Jan 2016 16:16:18 +0000 (17:16 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 22 Jan 2016 16:16:18 +0000 (17:16 +0100)
commit196149f3e73703cffa551c373ae6ce2c6eef460e
treec33a0062db4e89f50d41f7ace7bde14864e5fb76
parent71d32ec4bb137f4ef2d981cf660bc2b4aa5ed990
btrfs: tweak free space tree bitmap allocation

The requested bitmap size varies, observed numbers were < 4K up to 16K.
Using vmalloc unconditionally would be too heavy, we'll try contiguous
allocations first and fall back to vmalloc if there's no contig memory.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-tree.c