xfs: cleanup xfs_dir2_leaf_getdents
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Nov 2019 23:05:32 +0000 (15:05 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Nov 2019 00:54:22 +0000 (16:54 -0800)
commit2f4369a862b637b20ac083a2e674a2d5d1489bda
tree86fedd174fec5fd8ff5d93a5eedc464ad9711459
parent263dde869bd09b1a709fd92118c7fff832773689
xfs: cleanup xfs_dir2_leaf_getdents

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/xfs_dir2_readdir.c