]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4756ddcbfe4d96571bb9de69480e628285cae85e
tree7aeda449855c8b172cf36c01788db3514ff4d0c7
parent3147d7dfad05be41c6526b0af0fe742533acb51d
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