]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: cleanup xfs_dir2_block_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)
commit0d2d9b163061372224cc37345b54355d90f53c34
tree974ead899304f7a147583d70022e04e99be59ac1
parentbb5dac827e83db4b0ab50d991017f7719e7a4bf4
xfs: cleanup xfs_dir2_block_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