]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: zoned: factor out the zone loading part into a testable function
authorNaohiro Aota <naohiro.aota@wdc.com>
Mon, 26 Jan 2026 05:49:52 +0000 (14:49 +0900)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 06:59:06 +0000 (07:59 +0100)
commite8f6130419d7a8b1384135a9e23d008c3fc01dad
tree709839f236d1c9e44755e5a417de5f24c9f83047
parente564cd2511750a634f916ae406d1f6ff84e53d0d
btrfs: zoned: factor out the zone loading part into a testable function

Separate btrfs_load_block_group_* calling path into a function, so that it
can be an entry point of unit test.

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>
fs/btrfs/zoned.c
fs/btrfs/zoned.h