btrfs: make smaller extents more likely to go into bitmaps
authorDennis Zhou <dennis@kernel.org>
Thu, 2 Jan 2020 21:26:44 +0000 (16:26 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 20 Jan 2020 15:41:00 +0000 (16:41 +0100)
commitf9bb615af2ba8724bff82376275a14b02eef5eb2
tree195505808f45420164a430cf32c2bd418c56dd6d
parent5d90c5c75711d9734e9d3d38a6e3b849b7bea742
btrfs: make smaller extents more likely to go into bitmaps

It's less than ideal for small extents to eat into our extent budget, so
force extents <= 32KB into the bitmaps save for the first handful.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-cache.c