xfs: cleanup __xfs_dir3_data_check
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Nov 2019 23:05:35 +0000 (15:05 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Nov 2019 00:54:23 +0000 (16:54 -0800)
commit48a71399e7477043ee25573b3df2505787fcf0c4
tree254591d133151192912129ec9e26fc91469edb85
parent62479f573459827edacb296dac4ad7ca714ab71c
xfs: cleanup __xfs_dir3_data_check

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/libxfs/xfs_dir2_data.c