diff options
| author | David Sterba <dsterba@suse.com> | 2020-11-13 17:58:03 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2020-12-08 15:54:14 +0100 |
| commit | a0f6d924cada10eefa526ccfa1be7888f559d9d7 (patch) | |
| tree | 80a32fadb45c120d96009e8827d5d27ab9e194cb /fs/btrfs/tree-checker.c | |
| parent | btrfs: use detach_page_private() in alloc_extent_buffer() (diff) | |
| download | linux-a0f6d924cada10eefa526ccfa1be7888f559d9d7.tar.gz linux-a0f6d924cada10eefa526ccfa1be7888f559d9d7.zip | |
btrfs: remove stub device info from messages when we have no fs_info
Without a NULL fs_info the helpers will print something like
BTRFS error (device <unknown>): ...
This can happen in contexts where fs_info is not available at all or
it's potentially unsafe due to object lifetime. The <unknown> stub does
not bring much information and with the prefix makes the message
unnecessarily longer.
Remove it for the NULL fs_info case.
BTRFS error: ...
Callers can add the device information to the message itself if needed.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-checker.c')
0 files changed, 0 insertions, 0 deletions
