diff options
author | David Sterba <dsterba@suse.com> | 2015-10-08 11:37:06 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-10-08 13:08:03 +0200 |
commit | f14d104dbdb5044dac9acd0e983ffb60f706c746 (patch) | |
tree | a1fae623eade7120397723d6edef6a99356997f5 /fs/btrfs/root-tree.c | |
parent | btrfs: switch message printers to ratelimited variants (diff) | |
download | linux-f14d104dbdb5044dac9acd0e983ffb60f706c746.tar.xz linux-f14d104dbdb5044dac9acd0e983ffb60f706c746.zip |
btrfs: switch more printks to our helpers
Convert the simple cases, not all functions provide a way to reach the
fs_info. Also skipped debugging messages (print-tree, integrity
checker and pr_debug) and messages that are printed from possibly
unfinished mount.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/root-tree.c')
-rw-r--r-- | fs/btrfs/root-tree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index 360a728a639f..42267d37bb94 100644 --- a/fs/btrfs/root-tree.c +++ b/fs/btrfs/root-tree.c @@ -45,12 +45,13 @@ static void btrfs_read_root_item(struct extent_buffer *eb, int slot, if (!need_reset && btrfs_root_generation(item) != btrfs_root_generation_v2(item)) { if (btrfs_root_generation_v2(item) != 0) { - printk(KERN_WARNING "BTRFS: mismatching " + btrfs_warn(eb->fs_info, + "mismatching " "generation and generation_v2 " "found in root item. This root " "was probably mounted with an " "older kernel. Resetting all " - "new fields.\n"); + "new fields."); } need_reset = 1; } |