xfs: cleanup xchk_directory_data_bestfree
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Nov 2019 23:05:33 +0000 (15:05 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Nov 2019 00:54:23 +0000 (16:54 -0800)
commit4a1a8b2f5f7840f6808782c5f7a515a9c8f58b11
tree39c25eb725b31fdd8018808a7a8819a3aca876a9
parent4c037dd5fd32240066f5a222e432cd609ce620fd
xfs: cleanup xchk_directory_data_bestfree

Use an offset as the main means for iteration, and only do pointer
arithmetics to find the data/unused entries.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/scrub/dir.c