Re: [PATCH 4/4 v2] btrfs: tests: polish ifdefs around testing helper

2018-09-17 Thread Omar Sandoval
On Fri, Sep 14, 2018 at 06:42:03PM +0200, David Sterba wrote: > Avoid the inline ifdefs and use two sections for self-tests enabled and > disabled. > > Though there could be no ifdef and unconditional test_bit of > BTRFS_FS_STATE_DUMMY_FS_INFO, the static inline can help to optimize out > any

[PATCH 4/4 v2] btrfs: tests: polish ifdefs around testing helper

2018-09-14 Thread David Sterba
Avoid the inline ifdefs and use two sections for self-tests enabled and disabled. Though there could be no ifdef and unconditional test_bit of BTRFS_FS_STATE_DUMMY_FS_INFO, the static inline can help to optimize out any code that would depend on conditions using btrfs_is_testing. As this is only