btrfs: Add self-tests for btrfs_rmap_block
authorNikolay Borisov <nborisov@suse.com>
Tue, 10 Dec 2019 18:00:45 +0000 (20:00 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 23 Jan 2020 16:24:35 +0000 (17:24 +0100)
commitbf2e2eb060fa29dd892fa42dd0a03f130815acf0
tree1e7e5326eb287e40317fb1b0efc46877a8927479
parentb3ad2c17fd80f2db3b824c28691adaaa4ffa2fc4
btrfs: Add self-tests for btrfs_rmap_block

Add RAID1 and single testcases to verify that data stripes are excluded
from super block locations and that the address mapping is valid.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/extent-map-tests.c