Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346749
b: refs/heads/master
c: 4ded4f6
h: refs/heads/master
i:
  346747: 921951c
v: v3
  • Loading branch information
Stefan Behrens authored and Chris Mason committed Dec 17, 2012
1 parent d1c5124 commit acb7930
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 6c760c072403f446ff829ec9e89568943a3c2ef2
refs/heads/master: 4ded4f639533ed5f02a0f0ab20d43bb9659c91f8
11 changes: 11 additions & 0 deletions trunk/fs/btrfs/scrub.c
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,17 @@ static int scrub_handle_errored_block(struct scrub_block *sblock_to_check)

BUG_ON(sblock_to_check->page_count < 1);
fs_info = sctx->dev_root->fs_info;
if (sblock_to_check->pagev[0]->flags & BTRFS_EXTENT_FLAG_SUPER) {
/*
* if we find an error in a super block, we just report it.
* They will get written with the next transaction commit
* anyway
*/
spin_lock(&sctx->stat_lock);
++sctx->stat.super_errors;
spin_unlock(&sctx->stat_lock);
return 0;
}
length = sblock_to_check->page_count * PAGE_SIZE;
logical = sblock_to_check->pagev[0]->logical;
generation = sblock_to_check->pagev[0]->generation;
Expand Down

0 comments on commit acb7930

Please sign in to comment.