diff options
author | 2021-12-08 00:35:48 +0900 | |
---|---|---|
committer | 2022-01-07 14:18:26 +0100 | |
commit | 50475cd57706359d6cc652be88369dace7a4c2eb (patch) | |
tree | e15ae8f576248963fcda79291824a0fa1d9eb472 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: zoned: unset dedicated block group on allocation failure (diff) | |
download | wireguard-linux-50475cd57706359d6cc652be88369dace7a4c2eb.tar.xz wireguard-linux-50475cd57706359d6cc652be88369dace7a4c2eb.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions