]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
repair: remove duplicate field from aghdr_cnts
authorBrian Foster <bfoster@redhat.com>
Tue, 23 Jun 2015 05:08:47 +0000 (15:08 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 23 Jun 2015 05:08:47 +0000 (15:08 +1000)
commitf7d40280be140b0a08ef914d758e19e48a0ff870
tree8f5ec541e66076e753c7dc5a573345fcbb33b015
parentb63f41bb52229539c2dfe624aee4723b216ffd44
repair: remove duplicate field from aghdr_cnts

The agicount and icount fields are used in separate parts of the AG scan
but both fields track the same data. agicount is used to compare with
the AGI header and icount is used to calculate the total inode count to
compare with sb_icount.

Use agicount rather than icount in scan_ags() and remove the icount
field.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/scan.c