xfs: replace xfs_dir3_data_endp with xfs_dir3_data_end_offset
All the callers really want an offset into the buffer, so adopt the helper to return that instead. 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>
This commit is contained in:

committed by
Darrick J. Wong

parent
9eedae1089
commit
5c072127d3
@@ -283,7 +283,7 @@ xfs_dir2_block_to_sf(
|
||||
* Loop over the active and unused entries. Stop when we reach the
|
||||
* leaf/tail portion of the block.
|
||||
*/
|
||||
end = xfs_dir3_data_endp(args->geo, bp->b_addr) - bp->b_addr;
|
||||
end = xfs_dir3_data_end_offset(args->geo, bp->b_addr);
|
||||
sfep = xfs_dir2_sf_firstentry(sfp);
|
||||
while (offset < end) {
|
||||
struct xfs_dir2_data_unused *dup = bp->b_addr + offset;
|
||||
|
Reference in New Issue
Block a user