]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: use btrfs_is_testing() everywhere
authorDavid Sterba <dsterba@suse.com>
Wed, 17 Apr 2024 22:47:13 +0000 (00:47 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:07 +0000 (21:31 +0200)
commitfef998d1a0b00ab35658484060354213a2c06c81
tree7be7c24ac830e780fb63ec9b1de0c79865da11d9
parent905a95f3dd25abba64cad3e7a96947fcb9bf7006
btrfs: use btrfs_is_testing() everywhere

There are open coded tests of BTRFS_FS_STATE_DUMMY_FS_INFO and we have a
wrapper for that that's a compile-time constant when self-tests are not
built in. As this is only for development we can save some bytes and
conditions on release configs by using the helper in the remaining
cases.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/sysfs.c
fs/btrfs/tests/btrfs-tests.c
fs/btrfs/tree-checker.c