]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add messages to printk index
authorJonathan Lassoff <jof@thejof.com>
Thu, 17 Mar 2022 17:45:08 +0000 (10:45 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:09 +0000 (17:03 +0200)
commit117cfee915577ba9576c7ee06a1828e8925f240a
treec29dfc9b6c3c815266a8178b309802096d5970cf
parentc6800e7606700da18ab5cfd2c0d2bfa6da382414
btrfs: add messages to printk index

In order for end users to quickly react to new issues that come up in
production, it is proving useful to leverage this printk indexing
system. This printk index enables kernel developers to use calls to
printk() with changeable ad-hoc format strings, while still enabling end
users to detect changes and develop a semi-stable interface for
detecting and parsing these messages.

So that detailed Btrfs messages are captured by this printk index, this
patch wraps btrfs_printk and btrfs_handle_fs_error with macros.

Example of the generated list:
https://lore.kernel.org/lkml/12588e13d51a9c3bf59467d3fc1ac2162f1275c1.1647539056.git.jof@thejof.com

Signed-off-by: Jonathan Lassoff <jof@thejof.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/super.c