]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zoned: add asserts on splitting extent_map
authorNaohiro Aota <naohiro.aota@wdc.com>
Mon, 9 Aug 2021 00:29:18 +0000 (09:29 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Aug 2021 11:19:11 +0000 (13:19 +0200)
commite86e3e194c81428ed601d99aad9e46f9e463ca20
treeaa81a2bfa80b33af75952f2583f91cb18a673bc3
parent726b2afa72e512895aac6147362efa86e6367301
btrfs: zoned: add asserts on splitting extent_map

We call split_zoned_em() on an extent_map on submitting a bio for it. Thus,
we can assume the extent_map is PINNED, not LOGGING, and in the modified
list. Add ASSERT()s to ensure the extent_maps after the split also has the
proper flags set and are in the modified list.

Suggested-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c