afs: Use op->nr_iterations=-1 to indicate to begin fileserver iteration

[ Upstream commit 075171fd22 ]

Set op->nr_iterations to -1 to indicate that we need to begin fileserver
iteration rather than setting error to SHRT_MAX.  This makes it easier to
eliminate the address cursor.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Stable-dep-of: 17ba6f0bd1 ("afs: Fix error handling with lookup via FS.InlineBulkStatus")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
David Howells 2023-10-20 16:04:52 +01:00 • committed by Greg Kroah-Hartman
commit 06fefb477d
3 changed files with 8 additions and 7 deletions