Naohiro Aota 50475cd577 btrfs: add extent allocator hook to decide to allocate chunk or not
Introduce a new hook for an extent allocator policy. With the new
hook, a policy can decide to allocate a new block group or not. If
not, it will return -ENOSPC, so btrfs_reserve_extent() will cut the
allocation size in half and retry the allocation if min_alloc_size is
large enough.

The hook has a place holder and will be replaced with the real
implementation in the next patch.

CC: stable@vger.kernel.org # 5.16
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2022-01-07 14:18:26 +01:00
..
2021-09-02 09:21:27 -07:00
2022-01-07 14:18:23 +01:00
2021-06-22 14:11:57 +02:00
2019-11-18 23:43:44 +01:00
2022-01-07 14:18:24 +01:00
2021-06-22 14:11:57 +02:00
2021-11-26 11:24:32 -08:00
2021-08-23 13:19:09 +02:00
2022-01-07 14:18:23 +01:00
2021-10-29 12:38:43 +02:00
2021-10-26 19:08:05 +02:00
2022-01-03 15:09:47 +01:00
2021-11-08 16:55:21 -08:00