diff options
author | David Howells <dhowells@redhat.com> | 2019-05-07 17:30:34 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2019-05-15 19:35:53 +0300 |
commit | ca1cbbdce92bc2bfdc17e4f70ad41f6e6af2d03f (patch) | |
tree | 2229083e8e8186749c7de607d5d53da169270a17 /fs/afs/vl_rotate.c | |
parent | 6b8812fc8ec28c13c09c89f88ce3958f19238838 (diff) | |
download | linux-ca1cbbdce92bc2bfdc17e4f70ad41f6e6af2d03f.tar.xz |
afs: Fix afs_cell records to always have a VL server list record
Fix it such that afs_cell records always have a VL server list record
attached, even if it's a dummy one, so that various checks can be removed.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/vl_rotate.c')
-rw-r--r-- | fs/afs/vl_rotate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/afs/vl_rotate.c b/fs/afs/vl_rotate.c index 7adde83a0648..65629d73ad9d 100644 --- a/fs/afs/vl_rotate.c +++ b/fs/afs/vl_rotate.c @@ -55,7 +55,7 @@ static bool afs_start_vl_iteration(struct afs_vl_cursor *vc) rcu_dereference_protected(cell->vl_servers, lockdep_is_held(&cell->vl_servers_lock))); read_unlock(&cell->vl_servers_lock); - if (!vc->server_list || !vc->server_list->nr_servers) + if (!vc->server_list->nr_servers) return false; vc->untried = (1UL << vc->server_list->nr_servers) - 1; |