aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2012-07-17 11:02:10 -0400
committerChris Mason <chris.mason@fusionio.com>2012-07-23 16:28:07 -0400
commit5021976d8dd6d94248026631bfa4578aacd7b563 (patch)
treec69823c1293c3fa6e29178a255465e10b38a8047 /fs/btrfs
parent18077bb413687f96bd168efcfb2b8778529e3b74 (diff)
Btrfs: remove unwanted printk() for btrfs device I/O stats
People complained about the annoying kernel log message "btrfs: no dev_stats entry found ... (OK on first mount after mkfs)" everytime a filesystem is mounted for the first time after running mkfs. Since the distribution of the btrfs-progs is not synchronized to the kernel version, mkfs like it is now will be used also in the future. Then this message is not useful to find errors, it is just annoying. This commit removes the printk(). Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/volumes.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 39a0d04759f8..14436074350f 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -4743,9 +4743,6 @@ int btrfs_init_dev_stats(struct btrfs_fs_info *fs_info)
4743 key.offset = device->devid; 4743 key.offset = device->devid;
4744 ret = btrfs_search_slot(NULL, dev_root, &key, path, 0, 0); 4744 ret = btrfs_search_slot(NULL, dev_root, &key, path, 0, 0);
4745 if (ret) { 4745 if (ret) {
4746 printk_in_rcu(KERN_WARNING "btrfs: no dev_stats entry found for device %s (devid %llu) (OK on first mount after mkfs)\n",
4747 rcu_str_deref(device->name),
4748 (unsigned long long)device->devid);
4749 __btrfs_reset_dev_stats(device); 4746 __btrfs_reset_dev_stats(device);
4750 device->dev_stats_valid = 1; 4747 device->dev_stats_valid = 1;
4751 btrfs_release_path(path); 4748 btrfs_release_path(path);