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)
commit79b134a22b6fc45f48bcc1c27d6bf05b3ede5e06
treec33a0062db4e89f50d41f7ace7bde14864e5fb76
parent8cce83ba5062a301a09e0920df813bbbdd3e9dbf
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