btrfs: tests: add separate stub for find_lock_delalloc_range
authorDavid Sterba <dsterba@suse.com>
Fri, 17 Aug 2018 15:28:06 +0000 (17:28 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 15 Oct 2018 15:23:34 +0000 (17:23 +0200)
commit9c36396c2a788facd4282a2b0646a1c4ac19847a
tree889d12c8b482dab8f9f7591efcc4e882a125deb4
parentecf160b424ee648a14116079ff72d7d1241e377d
btrfs: tests: add separate stub for find_lock_delalloc_range

The helper find_lock_delalloc_range is now conditionally built static,
dpending on whether the self-tests are enabled or not. There's a macro
that is supposed to hide the export, used only once. To discourage
further use, drop it an add a public wrapper for the helper needed by
tests.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/tests/extent-io-tests.c