Lines Matching refs:vldb

25 					   struct afs_vldb_entry *vldb,  in afs_alloc_volume()  argument
32 for (i = 0; i < vldb->nr_servers; i++) in afs_alloc_volume()
33 if (vldb->fs_mask[i] & type_mask) in afs_alloc_volume()
40 volume->vid = vldb->vid[params->type]; in afs_alloc_volume()
45 volume->name_len = vldb->name_len; in afs_alloc_volume()
51 memcpy(volume->name, vldb->name, vldb->name_len + 1); in afs_alloc_volume()
53 slist = afs_alloc_server_list(params->cell, params->key, vldb, type_mask); in afs_alloc_volume()
79 struct afs_vldb_entry *vldb; in afs_vl_lookup_vldb() local
103 vldb = afs_vl_get_entry_by_name_u(cell->net, &ac, key, in afs_vl_lookup_vldb()
108 return vldb; in afs_vl_lookup_vldb()
155 struct afs_vldb_entry *vldb; in afs_create_volume() local
159 vldb = afs_vl_lookup_vldb(params->cell, params->key, in afs_create_volume()
161 if (IS_ERR(vldb)) in afs_create_volume()
162 return ERR_CAST(vldb); in afs_create_volume()
164 if (test_bit(AFS_VLDB_QUERY_ERROR, &vldb->flags)) { in afs_create_volume()
165 volume = ERR_PTR(vldb->error); in afs_create_volume()
172 if (!(vldb->flags & type_mask)) in afs_create_volume()
174 } else if (test_bit(AFS_VLDB_HAS_RO, &vldb->flags)) { in afs_create_volume()
176 } else if (test_bit(AFS_VLDB_HAS_RW, &vldb->flags)) { in afs_create_volume()
183 volume = afs_alloc_volume(params, vldb, type_mask); in afs_create_volume()
186 kfree(vldb); in afs_create_volume()
265 struct afs_vldb_entry *vldb; in afs_update_volume_status() local
276 vldb = afs_vl_lookup_vldb(volume->cell, key, idbuf, idsz); in afs_update_volume_status()
277 if (IS_ERR(vldb)) { in afs_update_volume_status()
278 ret = PTR_ERR(vldb); in afs_update_volume_status()
283 if (vldb->name_len != volume->name_len || in afs_update_volume_status()
284 memcmp(vldb->name, volume->name, vldb->name_len) != 0) { in afs_update_volume_status()
286 memcpy(volume->name, vldb->name, AFS_MAXVOLNAME); in afs_update_volume_status()
287 volume->name_len = vldb->name_len; in afs_update_volume_status()
292 vldb, (1 << volume->type)); in afs_update_volume_status()
317 kfree(vldb); in afs_update_volume_status()