]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: simplify internal btrfs_printk helpers
authorDavid Sterba <dsterba@suse.com>
Tue, 9 Dec 2025 17:10:30 +0000 (18:10 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 06:49:09 +0000 (07:49 +0100)
commitc53d61e24086fc7893fa03b148f930c08bd3cd77
tree61c89e5c09e148646b1ee043bca85f9f1db39845
parenta464ed9834d76e0709c55b2c763063751d0f35df
btrfs: simplify internal btrfs_printk helpers

The printk() can be compiled out depending on CONFIG_PRINTK, this is
reflected in our helpers. The indirection is provided by btrfs_printk()
used in the ratelimited and RCU wrapper macros.

Drop the btrfs_printk() helper and define the ratelimit and RCU helpers
directly when CONFIG_PRINTK is undefined. This will allow further
changes to the _btrfs_printk() interface (which is internal), any
message in other code should use the level-specific helpers.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/messages.h