xfs: cleanup xfs_dir2_block_to_sf
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Nov 2019 23:05:34 +0000 (15:05 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Nov 2019 00:54:23 +0000 (16:54 -0800)
commit8073af5153ce25fd936e5c190d6ccf30b9cae89d
tree7aeda449855c8b172cf36c01788db3514ff4d0c7
parent4a1a8b2f5f7840f6808782c5f7a515a9c8f58b11
xfs: cleanup xfs_dir2_block_to_sf

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_sf.c