Commit ca0170a7 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Carlos Maiolino
Browse files

xfs: rename xfs_zone_gc_iter_next to xfs_zone_gc_iter_irec



This function returns the current iterator position, which makes the
_next postfix a bit misleading.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarHans Holmberg <hans.holmberg@wdc.com>
Reviewed-by: default avatarDamien Le Moal <dlemoal@kernel.org>
Reviewed-by: default avatarCarlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: default avatarCarlos Maiolino <cem@kernel.org>
parent a99ed5db
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -374,7 +374,7 @@ xfs_zone_gc_query(
}

static bool
xfs_zone_gc_iter_next(
xfs_zone_gc_iter_irec(
	struct xfs_mount	*mp,
	struct xfs_zone_gc_iter	*iter,
	struct xfs_rmap_irec	*chunk_rec,
@@ -691,7 +691,7 @@ xfs_zone_gc_start_chunk(
	if (xfs_is_shutdown(mp))
		return false;

	if (!xfs_zone_gc_iter_next(mp, iter, &irec, &ip))
	if (!xfs_zone_gc_iter_irec(mp, iter, &irec, &ip))
		return false;
	oz = xfs_zone_gc_alloc_blocks(data, &irec.rm_blockcount, &daddr,
			&is_seq);