aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs/volume.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2018-10-19 19:57:59 -0400
committerDavid Howells <dhowells@redhat.com>2018-10-23 19:41:09 -0400
commit2feeaf8433c8e68de3d0a06a0ffe7742bcd13c1a (patch)
tree3df3266b2ae356ad67edf8fa5bf3491e2c865472 /fs/afs/volume.c
parent744bcd713a4eabb248246f7deccfad30c579b7f5 (diff)
afs: Eliminate the address pointer from the address list cursor
Eliminate the address pointer from the address list cursor as it's redundant (ac->addrs[ac->index] can be used to find the same address) and address lists must be replaced rather than being rearranged, so is of limited value. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/volume.c')
-rw-r--r--fs/afs/volume.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/afs/volume.c b/fs/afs/volume.c
index f0020e35bf6f..7527c081726e 100644
--- a/fs/afs/volume.c
+++ b/fs/afs/volume.c
@@ -88,16 +88,16 @@ static struct afs_vldb_entry *afs_vl_lookup_vldb(struct afs_cell *cell,
88 case VL_SERVICE: 88 case VL_SERVICE:
89 clear_bit(vc.ac.index, &vc.ac.alist->yfs); 89 clear_bit(vc.ac.index, &vc.ac.alist->yfs);
90 set_bit(vc.ac.index, &vc.ac.alist->probed); 90 set_bit(vc.ac.index, &vc.ac.alist->probed);
91 vc.ac.addr->srx_service = ret; 91 vc.ac.alist->addrs[vc.ac.index].srx_service = ret;
92 break; 92 break;
93 case YFS_VL_SERVICE: 93 case YFS_VL_SERVICE:
94 set_bit(vc.ac.index, &vc.ac.alist->yfs); 94 set_bit(vc.ac.index, &vc.ac.alist->yfs);
95 set_bit(vc.ac.index, &vc.ac.alist->probed); 95 set_bit(vc.ac.index, &vc.ac.alist->probed);
96 vc.ac.addr->srx_service = ret; 96 vc.ac.alist->addrs[vc.ac.index].srx_service = ret;
97 break; 97 break;
98 } 98 }
99 } 99 }
100 100
101 vldb = afs_vl_get_entry_by_name_u(&vc, volname, volnamesz); 101 vldb = afs_vl_get_entry_by_name_u(&vc, volname, volnamesz);
102 } 102 }
103 103