diff options
| author | 2025-06-20 18:06:45 +0200 | |
|---|---|---|
| committer | 2025-07-21 23:58:04 +0200 | |
| commit | 44cac5234104bb25e57dc75b8d5e6c5c26c384fb (patch) | |
| tree | 5f0a30001cda3a053e8e3b97aabaee5b70a9e208 /fs/btrfs/compression.c | |
| parent | btrfs: remove partial support for lowest level from btrfs_search_forward() (diff) | |
| download | wireguard-linux-44cac5234104bb25e57dc75b8d5e6c5c26c384fb.tar.xz wireguard-linux-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 <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
| -rw-r--r-- | fs/btrfs/compression.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index 48d07939fee4..a4934eb1ecdc 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -789,8 +789,8 @@ static void btrfs_init_workspace_manager(int type) */ workspace = alloc_workspace(type, 0); if (IS_ERR(workspace)) { - pr_warn( - "BTRFS: cannot preallocate compression workspace, will try later\n"); + btrfs_warn(NULL, + "cannot preallocate compression workspace, will try later"); } else { atomic_set(&wsm->total_ws, 1); wsm->free_ws = 1; @@ -888,9 +888,9 @@ again: /* once per minute */ 60 * HZ, /* no burst */ 1); - if (__ratelimit(&_rs)) { - pr_warn("BTRFS: no compression workspaces, low memory, retrying\n"); - } + if (__ratelimit(&_rs)) + btrfs_warn(NULL, + "no compression workspaces, low memory, retrying"); } goto again; } |
