summaryrefslogtreecommitdiff
path: root/btrfsck.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-05-02 15:05:11 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-05-02 15:05:11 -0400
commit9a73efb7d173ba1be2b98dcac9021802c3112269 (patch)
treedcac53a44c01c69723cd34942458df483d03fcca /btrfsck.c
parentbacbad41a0caf70651ffb4f44df51ad15235b882 (diff)
Fix compiler warning in volumes.c
Diffstat (limited to 'btrfsck.c')
-rw-r--r--btrfsck.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/btrfsck.c b/btrfsck.c
index 5a89ac66..174c7f90 100644
--- a/btrfsck.c
+++ b/btrfsck.c
@@ -606,6 +606,9 @@ static int run_next_block(struct btrfs_root *root,
data_bytes_allocated +=
btrfs_file_extent_disk_num_bytes(buf, fi);
+ if (data_bytes_allocated < root->sectorsize) {
+ abort();
+ }
data_bytes_referenced +=
btrfs_file_extent_num_bytes(buf, fi);
ret = add_extent_rec(extent_cache, NULL, bytenr,