diff options
author | Jeff Mahoney <jeffm@suse.com> | 2016-09-20 10:05:01 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-09-26 12:08:44 -0400 |
commit | 62e855771dacf7c4d6daf9741642a965e7066d31 (patch) | |
tree | 2d7f6cb2601bb4b5b3ca1cd1f301fadabbdfec76 /fs/btrfs/compression.c | |
parent | 5d163e0e68ce743e1e919ddd3264c96ac02e9026 (diff) |
btrfs: convert printk(KERN_* to use pr_* calls
This patch converts printk(KERN_* style messages to use the pr_* versions.
One side effect is that anything that was KERN_DEBUG is now automatically
a dynamic debug message.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
-rw-r--r-- | fs/btrfs/compression.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index 029db6e1105c..d635d0f00f8f 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c | |||
@@ -783,8 +783,7 @@ void __init btrfs_init_compress(void) | |||
783 | */ | 783 | */ |
784 | workspace = btrfs_compress_op[i]->alloc_workspace(); | 784 | workspace = btrfs_compress_op[i]->alloc_workspace(); |
785 | if (IS_ERR(workspace)) { | 785 | if (IS_ERR(workspace)) { |
786 | printk(KERN_WARNING | 786 | pr_warn("BTRFS: cannot preallocate compression workspace, will try later\n"); |
787 | "BTRFS: cannot preallocate compression workspace, will try later"); | ||
788 | } else { | 787 | } else { |
789 | atomic_set(&btrfs_comp_ws[i].total_ws, 1); | 788 | atomic_set(&btrfs_comp_ws[i].total_ws, 1); |
790 | btrfs_comp_ws[i].free_ws = 1; | 789 | btrfs_comp_ws[i].free_ws = 1; |
@@ -854,8 +853,7 @@ again: | |||
854 | /* no burst */ 1); | 853 | /* no burst */ 1); |
855 | 854 | ||
856 | if (__ratelimit(&_rs)) { | 855 | if (__ratelimit(&_rs)) { |
857 | printk(KERN_WARNING | 856 | pr_warn("no compression workspaces, low memory, retrying\n"); |
858 | "no compression workspaces, low memory, retrying"); | ||
859 | } | 857 | } |
860 | } | 858 | } |
861 | goto again; | 859 | goto again; |