mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-26 19:14:18 +00:00
btrfs: zoned: factor out prepare_allocation_zoned()
[ Upstream commitb271fee9a4] Factor out prepare_allocation_zoned() for further extension. While at it, optimize the if-branch a bit. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.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> Stable-dep-of:02444f2ac2("btrfs: zoned: optimize hint byte for zoned allocator") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
4739a8a989
commit
b1e30e2ff6
1 changed files with 19 additions and 13 deletions
Loading…
Add table
Add a link
Reference in a new issue