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

This test case simulates the racy situation of buffered 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