]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: factor out prepare_allocation() for extent allocation
authorNaohiro Aota <naohiro.aota@wdc.com>
Tue, 25 Feb 2020 03:56:26 +0000 (12:56 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:51 +0000 (17:01 +0100)
commit771a0ee3c569617de9841c203c7c1314fb1fee9e
tree0c63cb7a7f2af6a8cd87aa8e78e45ebdb625dd06
parentc2f93cf9f8a4c6625da7da41bf1061b96e3d7b92
btrfs: factor out prepare_allocation() for extent allocation

This function finally factor out prepare_allocation() form
find_free_extent(). This function is called before the allocation loop
and a specific allocator function like prepare_allocation_clustered()
should initialize their private information and can set proper hint_byte
to indicate where to start the allocation with.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c