diff options
| author | David Sterba <[email protected]> | 2025-06-20 16:06:45 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-07-21 21:58:04 +0000 |
| commit | 44cac5234104bb25e57dc75b8d5e6c5c26c384fb (patch) | |
| tree | 5f0a30001cda3a053e8e3b97aabaee5b70a9e208 /fs/btrfs/extent_io.c | |
| parent | btrfs: remove partial support for lowest level from btrfs_search_forward() (diff) | |
| download | kernel-44cac5234104bb25e57dc75b8d5e6c5c26c384fb.tar.gz kernel-44cac5234104bb25e57dc75b8d5e6c5c26c384fb.zip | |
btrfs: use our message helpers instead of pr_err/pr_warn/pr_info
Our message helpers accept NULL for the fs_info in the context that does
not provide and print the common header of the message. The use of pr_*
helpers is only for special reasons, like module loading, device
scanning or multi-line output (print-tree).
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/extent_io.c')
| -rw-r--r-- | fs/btrfs/extent_io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 1a56fb258204..7c171e236fe9 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -75,8 +75,8 @@ void btrfs_extent_buffer_leak_debug_check(struct btrfs_fs_info *fs_info) while (!list_empty(&fs_info->allocated_ebs)) { eb = list_first_entry(&fs_info->allocated_ebs, struct extent_buffer, leak_list); - pr_err( - "BTRFS: buffer leak start %llu len %u refs %d bflags %lu owner %llu\n", + btrfs_err(fs_info, + "buffer leak start %llu len %u refs %d bflags %lu owner %llu", eb->start, eb->len, refcount_read(&eb->refs), eb->bflags, btrfs_header_owner(eb)); list_del(&eb->leak_list); |
