summaryrefslogtreecommitdiffstats
path: root/fs/afs/addr_list.c
diff options
context:
space:
mode:
authorDavid Howells2018-10-20 01:57:58 +0200
committerDavid Howells2018-10-24 01:41:09 +0200
commit744bcd713a4eabb248246f7deccfad30c579b7f5 (patch)
tree60470fca4f54503cb844f02d12f25a4c67529972 /fs/afs/addr_list.c
parentafs: Implement YFS support in the fs client (diff)
downloadkernel-qcow2-linux-744bcd713a4eabb248246f7deccfad30c579b7f5.tar.gz
kernel-qcow2-linux-744bcd713a4eabb248246f7deccfad30c579b7f5.tar.xz
kernel-qcow2-linux-744bcd713a4eabb248246f7deccfad30c579b7f5.zip
afs: Allow dumping of server cursor on operation failure
Provide an option to allow the file or volume location server cursor to be dumped if the rotation routine falls off the end without managing to contact a server. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/addr_list.c')
-rw-r--r--fs/afs/addr_list.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/afs/addr_list.c b/fs/afs/addr_list.c
index 3f60b4012587..bc5ce31a4ae4 100644
--- a/fs/afs/addr_list.c
+++ b/fs/afs/addr_list.c
@@ -358,6 +358,8 @@ bool afs_iterate_addresses(struct afs_addr_cursor *ac)
if (!ac->alist)
return false;
+ ac->nr_iterations++;
+
if (ac->begun) {
ac->index++;
if (ac->index == ac->alist->nr_addrs)