afs: Use op->nr_iterations=-1 to indicate to begin fileserver iteration
authorDavid Howells <dhowells@redhat.com>
Fri, 20 Oct 2023 15:04:52 +0000 (16:04 +0100)
committerDavid Howells <dhowells@redhat.com>
Sun, 24 Dec 2023 15:22:52 +0000 (15:22 +0000)
commit075171fd22be33acf4ab354814bfa6de1c3412ce
tree25208765995db93041ee54e2051d5950f884729e
parenteb8eae65f0c713bcef84b082aa919f72c3d83268
afs: Use op->nr_iterations=-1 to indicate to begin fileserver iteration

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
fs/afs/fs_operation.c
fs/afs/internal.h
fs/afs/rotate.c