summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/messages.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2023-11-21 14:20:19 +0100
committerDavid Sterba <dsterba@suse.com>2023-12-15 20:27:02 +0100
commit3a97347ea694b6c091513135095128f099b73143 (patch)
tree390e2419fc8935973c084573a3a38f37760ba0b9 /fs/btrfs/messages.c
parentbtrfs: drop error message in extent_io_tree insert_state() (diff)
downloadlinux-3a97347ea694b6c091513135095128f099b73143.tar.xz
linux-3a97347ea694b6c091513135095128f099b73143.zip
btrfs: constify fs_info parameter in __btrfs_panic()
The printk helpers take const fs_info if it's used just for the identifier in the messages, __btrfs_panic() lacks that. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/messages.c')
-rw-r--r--fs/btrfs/messages.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/messages.c b/fs/btrfs/messages.c
index b8f9c9e56c8c..cdada4865837 100644
--- a/fs/btrfs/messages.c
+++ b/fs/btrfs/messages.c
@@ -287,7 +287,7 @@ void __cold btrfs_err_32bit_limit(struct btrfs_fs_info *fs_info)
* panic or BUGs, depending on mount options.
*/
__cold
-void __btrfs_panic(struct btrfs_fs_info *fs_info, const char *function,
+void __btrfs_panic(const struct btrfs_fs_info *fs_info, const char *function,
unsigned int line, int error, const char *fmt, ...)
{
char *s_id = "<unknown>";