]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: check the uniqueness of the AGFL entries
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 2 Nov 2017 22:58:36 +0000 (15:58 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 10 Nov 2017 03:27:32 +0000 (19:27 -0800)
commite43ac277e6104d240ba681a7114041f99af7e793
tree3f35c3d80779536ba1109cccba016e470628826b
parent5c45206add708421b89f3f79db9dbf2d7a4f17f4
xfs: check the uniqueness of the AGFL entries

Make sure we don't list a block twice in the agfl by copying the
contents of the AGFL to an array, sorting it, and looking for
duplicates.  We can easily check that the number of agfl entries we see
actually matches the flcount, so do that too.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/agheader.c