]> 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)
commit8b8a87c3e432b4b9a8d8da7342ab9abbb1c9f378
treec33a0062db4e89f50d41f7ace7bde14864e5fb76
parent9b946a0ddec1b88736065cc7e7e881bbf5becb44
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