Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318863
b: refs/heads/master
c: a98cdb8
h: refs/heads/master
i:
  318861: 6190bfa
  318859: ed2809d
  318855: d29b7d7
  318847: 3f1e945
v: v3
  • Loading branch information
Stefan Behrens authored and Chris Mason committed Jul 23, 2012
1 parent ab26f8d commit 0f86bff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5021976d8dd6d94248026631bfa4578aacd7b563
refs/heads/master: a98cdb85b990765dbe80a215367ae007320bfeea
8 changes: 8 additions & 0 deletions trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -4884,6 +4884,14 @@ void btrfs_dev_stat_print_on_error(struct btrfs_device *dev)

static void btrfs_dev_stat_print_on_load(struct btrfs_device *dev)
{
int i;

for (i = 0; i < BTRFS_DEV_STAT_VALUES_MAX; i++)
if (btrfs_dev_stat_read(dev, i) != 0)
break;
if (i == BTRFS_DEV_STAT_VALUES_MAX)
return; /* all values == 0, suppress message */

printk_in_rcu(KERN_INFO "btrfs: bdev %s errs: wr %u, rd %u, flush %u, corrupt %u, gen %u\n",
rcu_str_deref(dev->name),
btrfs_dev_stat_read(dev, BTRFS_DEV_STAT_WRITE_ERRS),
Expand Down

0 comments on commit 0f86bff

Please sign in to comment.