• Home
  • Raw
  • Download

Lines Matching refs:vldb

69 					   struct afs_vldb_entry *vldb,  in afs_alloc_volume()  argument
76 for (i = 0; i < vldb->nr_servers; i++) in afs_alloc_volume()
77 if (vldb->fs_mask[i] & type_mask) in afs_alloc_volume()
84 volume->vid = vldb->vid[params->type]; in afs_alloc_volume()
89 volume->name_len = vldb->name_len; in afs_alloc_volume()
95 memcpy(volume->name, vldb->name, vldb->name_len + 1); in afs_alloc_volume()
97 slist = afs_alloc_server_list(params->cell, params->key, vldb, type_mask); in afs_alloc_volume()
119 struct afs_vldb_entry *vldb, in afs_lookup_volume() argument
124 candidate = afs_alloc_volume(params, vldb, type_mask); in afs_lookup_volume()
142 struct afs_vldb_entry *vldb = ERR_PTR(-EDESTADDRREQ); in afs_vl_lookup_vldb() local
150 vldb = afs_vl_get_entry_by_name_u(&vc, volname, volnamesz); in afs_vl_lookup_vldb()
154 return ret < 0 ? ERR_PTR(ret) : vldb; in afs_vl_lookup_vldb()
183 struct afs_vldb_entry *vldb; in afs_create_volume() local
187 vldb = afs_vl_lookup_vldb(params->cell, params->key, in afs_create_volume()
189 if (IS_ERR(vldb)) in afs_create_volume()
190 return ERR_CAST(vldb); in afs_create_volume()
192 if (test_bit(AFS_VLDB_QUERY_ERROR, &vldb->flags)) { in afs_create_volume()
193 volume = ERR_PTR(vldb->error); in afs_create_volume()
200 if (!(vldb->flags & type_mask)) in afs_create_volume()
202 } else if (test_bit(AFS_VLDB_HAS_RO, &vldb->flags)) { in afs_create_volume()
204 } else if (test_bit(AFS_VLDB_HAS_RW, &vldb->flags)) { in afs_create_volume()
211 volume = afs_lookup_volume(params, vldb, type_mask); in afs_create_volume()
214 kfree(vldb); in afs_create_volume()
304 struct afs_vldb_entry *vldb; in afs_update_volume_status() local
315 vldb = afs_vl_lookup_vldb(volume->cell, key, idbuf, idsz); in afs_update_volume_status()
316 if (IS_ERR(vldb)) { in afs_update_volume_status()
317 ret = PTR_ERR(vldb); in afs_update_volume_status()
322 if (vldb->name_len != volume->name_len || in afs_update_volume_status()
323 memcmp(vldb->name, volume->name, vldb->name_len) != 0) { in afs_update_volume_status()
325 memcpy(volume->name, vldb->name, AFS_MAXVOLNAME); in afs_update_volume_status()
326 volume->name_len = vldb->name_len; in afs_update_volume_status()
331 vldb, (1 << volume->type)); in afs_update_volume_status()
356 kfree(vldb); in afs_update_volume_status()