Btrfs: extent map selftest: dio write vs dio read
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 5 Jan 2018 19:51:14 +0000 (12:51 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:22 +0000 (16:08 +0100)
commitcd77f4f8363602e5fbee481f38241110e65ff014
tree9a5d1e3f5ab4682253f7abf5a0c69417f28ab4ef
parentfd87526fada701295656b3c695ae20cb037fdd95
Btrfs: extent map selftest: dio write vs dio read

This test case simulates the racy situation of dio write vs dio read,
and see if btrfs_get_extent() would return -EEXIST.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/extent-map-tests.c