btrfs: tests: add locks around add_extent_mapping
authorDavid Sterba <dsterba@suse.com>
Wed, 3 Apr 2019 17:32:56 +0000 (19:32 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:35:03 +0000 (13:35 +0200)
commit93ead46b038037cd717cf46c9170af2531a6eb58
tree7f4c55fe8e2db5740effb5999ed72dc3a7020209
parent8666e638b07e2be143b91129d3499d2c25f26a5f
btrfs: tests: add locks around add_extent_mapping

There are no concerns about locking during the selftests so the locks
are not necessary, but following patches will add lockdep assertions to
add_extent_mapping so this is needed in tests too.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/extent-map-tests.c