linux/fs/btrfs/tests
Johannes Thumshirn ce9f967f31 btrfs: use EXPORT_FOR_TESTS for conditionally exported functions
Several functions in BTRFS are only used inside the source file they are
declared if CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not defined. However if
CONFIG_BTRFS_FS_RUN_SANITY_TESTS is defined these functions are shared
with the unit tests code.

Before the introduction of the EXPORT_FOR_TESTS macro, these functions
could not be declared as static and the compiler had a harder task when
optimizing and inlining them.

As we have EXPORT_FOR_TESTS now, use it where appropriate to support the
compiler.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2018-12-17 14:51:37 +01:00
..
btrfs-tests.c btrfs: Adjust loop in free_extent_buffer 2018-12-17 14:51:31 +01:00
btrfs-tests.h btrfs: tests: drop newline from test_msg strings 2018-05-29 18:12:52 +02:00
extent-buffer-tests.c btrfs: tests: drop newline from test_msg strings 2018-05-29 18:12:52 +02:00
extent-io-tests.c btrfs: use EXPORT_FOR_TESTS for conditionally exported functions 2018-12-17 14:51:37 +01:00
extent-map-tests.c Btrfs: extent_map: use rb_first_cached 2018-10-15 17:23:33 +02:00
free-space-tests.c btrfs: tests: drop newline from test_msg strings 2018-05-29 18:12:52 +02:00
free-space-tree-tests.c btrfs: tests: drop newline from test_msg strings 2018-05-29 18:12:52 +02:00
inode-tests.c btrfs: Adjust loop in free_extent_buffer 2018-12-17 14:51:31 +01:00
qgroup-tests.c btrfs: qgroup: Drop fs_info parameter from btrfs_qgroup_account_extent 2018-08-06 13:12:52 +02:00