]> 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)
commit0b91666bc1011828db3c58ec2d36c92d556bb6fb
treeaa81a2bfa80b33af75952f2583f91cb18a673bc3
parentebfa76c6d4ef170ffad24fe1c6a27d6fd517d601
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