btrfs: remove recalc_thresholds from free space ops
authorDavid Sterba <dsterba@suse.com>
Thu, 3 Dec 2020 16:18:38 +0000 (17:18 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 9 Dec 2020 18:16:06 +0000 (19:16 +0100)
commitfa598b0696409e3522022a1dddd47a1adc2b994d
treea2c4c06d48e81b1bb1048f5ec2fd95b1702757ea
parentf0d1219def15ef14a2ba2f6b7a612773295b3b5c
btrfs: remove recalc_thresholds from free space ops

After removing the inode number cache that was using the free space
cache code, we can remove at least the recalc_thresholds callback from
the ops. Both code and tests use the same callback function. It's moved
before its first use.

The use_bitmaps callback is still needed by tests to create some
extents/bitmap setup.

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