]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0fa59e2d291f7d20a8865c8e6b58004f1db0a79
tree9a5d1e3f5ab4682253f7abf5a0c69417f28ab4ef
parent91a36d02526ab91341f968bd1f0eccf81e6af62c
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