btrfs: simplify debug print helpers without enabled printk
authorDavid Sterba <dsterba@suse.com>
Mon, 9 Jun 2025 17:09:30 +0000 (19:09 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:56:39 +0000 (23:56 +0200)
commit2f3f1ad7f1792d0a6535a2da39d114a12902588d
treebf1a83efb558d311ad9c98f78d2789efcbd51f60
parentf9095103f2db15d791706191819d42224610d542
btrfs: simplify debug print helpers without enabled printk

The btrfs_debug() helpers depend on various config options. In case of
"no_printk" we don't need to define a special helper that in the end
does nothing but validates the parameters. As the default build config
is to validate the parameters we can simplify it to let the debug
helpers expand to nothing and remove btrfs_no_printk_in_rcu().

To avoid warnings use fs_info and inline one variable in
extent_from_logical().

Reviewed-by: Daniel Vacek <neelx@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c
fs/btrfs/messages.h