Skip to content

Commit 3a97347

Browse files
committed
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>
1 parent ab76c43 commit 3a97347

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/btrfs/messages.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ void __cold btrfs_err_32bit_limit(struct btrfs_fs_info *fs_info)
287287
* panic or BUGs, depending on mount options.
288288
*/
289289
__cold
290-
void __btrfs_panic(struct btrfs_fs_info *fs_info, const char *function,
290+
void __btrfs_panic(const struct btrfs_fs_info *fs_info, const char *function,
291291
unsigned int line, int error, const char *fmt, ...)
292292
{
293293
char *s_id = "<unknown>";

fs/btrfs/messages.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ const char * __attribute_const__ btrfs_decode_error(int error);
194194

195195
__printf(5, 6)
196196
__cold
197-
void __btrfs_panic(struct btrfs_fs_info *fs_info, const char *function,
197+
void __btrfs_panic(const struct btrfs_fs_info *fs_info, const char *function,
198198
unsigned int line, int error, const char *fmt, ...);
199199
/*
200200
* If BTRFS_MOUNT_PANIC_ON_FATAL_ERROR is in mount_opt, __btrfs_panic

0 commit comments

Comments
 (0)