Btrfs: add extent map selftests
We've observed that btrfs_get_extent() and merge_extent_mapping() could return -EEXIST in several cases, and they are caused by some racy condition, e.g dio read vs dio write, which makes the problem very tricky to reproduce. This adds extent map selftests in order to simulate those racy situations. Signed-off-by: NLiu Bo <bo.li.liu@oracle.com> Reviewed-by: NJosef Bacik <jbacik@fb.com> [ minor string adjustments ] Signed-off-by: NDavid Sterba <dsterba@suse.com>
Showing
fs/btrfs/tests/extent-map-tests.c
0 → 100644
想要评论请 注册 或 登录