Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299814
b: refs/heads/master
c: 5c84fc3
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Behrens authored and David Sterba committed Apr 18, 2012
1 parent a2a598f commit e0fe721
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99ba55ad696944b37d5557bc5b4816890854fdb9
refs/heads/master: 5c84fc3c3914e9adfa6155a167c6c0c2709e6a62
15 changes: 0 additions & 15 deletions trunk/fs/btrfs/scrub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1258,12 +1258,6 @@ static int scrub_checksum_data(struct scrub_block *sblock)
if (memcmp(csum, on_disk_csum, sdev->csum_size))
fail = 1;

if (fail) {
spin_lock(&sdev->stat_lock);
++sdev->stat.csum_errors;
spin_unlock(&sdev->stat_lock);
}

return fail;
}

Expand Down Expand Up @@ -1336,15 +1330,6 @@ static int scrub_checksum_tree_block(struct scrub_block *sblock)
if (memcmp(calculated_csum, on_disk_csum, sdev->csum_size))
++crc_fail;

if (crc_fail || fail) {
spin_lock(&sdev->stat_lock);
if (crc_fail)
++sdev->stat.csum_errors;
if (fail)
++sdev->stat.verify_errors;
spin_unlock(&sdev->stat_lock);
}

return fail || crc_fail;
}

Expand Down

0 comments on commit e0fe721

Please sign in to comment.