]> 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)
commit7043608815705fca2a533ad8492c4ac27bf2b289
tree9a5d1e3f5ab4682253f7abf5a0c69417f28ab4ef
parentff260b503f1130b9d9430267eb5006db62dd9153
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