/fs/afs/ |
D | cell.c | 35 struct afs_cell *cell; in afs_cell_alloc() local 50 cell = kzalloc(sizeof(struct afs_cell) + namelen + 1, GFP_KERNEL); in afs_cell_alloc() 51 if (!cell) { in afs_cell_alloc() 56 memcpy(cell->name, name, namelen); in afs_cell_alloc() 57 cell->name[namelen] = 0; in afs_cell_alloc() 59 atomic_set(&cell->usage, 1); in afs_cell_alloc() 60 INIT_LIST_HEAD(&cell->link); in afs_cell_alloc() 61 rwlock_init(&cell->servers_lock); in afs_cell_alloc() 62 INIT_LIST_HEAD(&cell->servers); in afs_cell_alloc() 63 init_rwsem(&cell->vl_sem); in afs_cell_alloc() [all …]
|
D | proc.c | 231 struct afs_cell *cell = list_entry(v, struct afs_cell, proc_link); in afs_proc_cells_show() local 241 atomic_read(&cell->usage), cell->name); in afs_proc_cells_show() 296 struct afs_cell *cell; in afs_proc_cells_write() local 298 cell = afs_cell_create(name, args); in afs_proc_cells_write() 299 if (IS_ERR(cell)) { in afs_proc_cells_write() 300 ret = PTR_ERR(cell); in afs_proc_cells_write() 304 afs_put_cell(cell); in afs_proc_cells_write() 389 int afs_proc_cell_setup(struct afs_cell *cell) in afs_proc_cell_setup() argument 393 _enter("%p{%s}", cell, cell->name); in afs_proc_cell_setup() 395 cell->proc_dir = proc_mkdir(cell->name, proc_afs); in afs_proc_cell_setup() [all …]
|
D | vlocation.c | 40 struct afs_cell *cell = vl->cell; in afs_vlocation_access_vl_by_name() local 44 _enter("%s,%s", cell->name, vl->vldb.name); in afs_vlocation_access_vl_by_name() 46 down_write(&vl->cell->vl_sem); in afs_vlocation_access_vl_by_name() 48 for (count = cell->vl_naddrs; count > 0; count--) { in afs_vlocation_access_vl_by_name() 49 addr = cell->vl_addrs[cell->vl_curr_svix]; in afs_vlocation_access_vl_by_name() 51 _debug("CellServ[%hu]: %08x", cell->vl_curr_svix, addr.s_addr); in afs_vlocation_access_vl_by_name() 76 cell->vl_curr_svix++; in afs_vlocation_access_vl_by_name() 77 cell->vl_curr_svix %= cell->vl_naddrs; in afs_vlocation_access_vl_by_name() 81 up_write(&vl->cell->vl_sem); in afs_vlocation_access_vl_by_name() 96 struct afs_cell *cell = vl->cell; in afs_vlocation_access_vl_by_id() local [all …]
|
D | server.c | 69 static struct afs_server *afs_alloc_server(struct afs_cell *cell, in afs_alloc_server() argument 79 server->cell = cell; in afs_alloc_server() 103 struct afs_server *afs_lookup_server(struct afs_cell *cell, in afs_lookup_server() argument 108 _enter("%p,%pI4", cell, &addr->s_addr); in afs_lookup_server() 111 read_lock(&cell->servers_lock); in afs_lookup_server() 113 list_for_each_entry(server, &cell->servers, link) { in afs_lookup_server() 117 read_unlock(&cell->servers_lock); in afs_lookup_server() 119 candidate = afs_alloc_server(cell, addr); in afs_lookup_server() 125 write_lock(&cell->servers_lock); in afs_lookup_server() 128 list_for_each_entry(server, &cell->servers, link) { in afs_lookup_server() [all …]
|
D | super.c | 137 struct afs_cell *cell; in afs_parse_options() local 153 cell = afs_cell_lookup(args[0].from, in afs_parse_options() 155 if (IS_ERR(cell)) in afs_parse_options() 156 return PTR_ERR(cell); in afs_parse_options() 157 afs_put_cell(params->cell); in afs_parse_options() 158 params->cell = cell; in afs_parse_options() 195 struct afs_cell *cell; in afs_parse_device_name() local 251 cellnamesz, cellnamesz, cellname ?: "", params->cell); in afs_parse_device_name() 254 if (cellname || !params->cell) { in afs_parse_device_name() 255 cell = afs_cell_lookup(cellname, cellnamesz); in afs_parse_device_name() [all …]
|
D | volume.c | 57 vlocation = afs_vlocation_lookup(params->cell, params->key, in afs_volume_lookup() 85 down_write(¶ms->cell->vl_sem); in afs_volume_lookup() 106 volume->cell = params->cell; in afs_volume_lookup() 115 volume->cell, &vlocation->vldb.servers[loop]); in afs_volume_lookup() 142 up_write(¶ms->cell->vl_sem); in afs_volume_lookup() 149 up_write(¶ms->cell->vl_sem); in afs_volume_lookup() 156 up_write(¶ms->cell->vl_sem); in afs_volume_lookup() 184 down_write(&vlocation->cell->vl_sem); in afs_put_volume() 187 up_write(&vlocation->cell->vl_sem); in afs_put_volume() 194 up_write(&vlocation->cell->vl_sem); in afs_put_volume()
|
D | cache.c | 34 struct afs_cell *cell = target; in afs_cell_cache_match() local 36 _enter("{%s},{%s}", ccell->name, cell->name); in afs_cell_cache_match() 38 if (strncmp(ccell->name, cell->name, sizeof(ccell->name)) == 0) { in afs_cell_cache_match() 55 struct afs_cell *cell = source; in afs_cell_cache_update() local 59 strncpy(ccell->name, cell->name, sizeof(ccell->name)); in afs_cell_cache_update() 62 cell->vl_addrs, in afs_cell_cache_update() 63 min(sizeof(ccell->vl_servers), sizeof(cell->vl_addrs))); in afs_cell_cache_update()
|
D | security.c | 23 struct key *afs_request_key(struct afs_cell *cell) in afs_request_key() argument 27 _enter("{%x}", key_serial(cell->anonymous_key)); in afs_request_key() 29 _debug("key %s", cell->anonymous_key->description); in afs_request_key() 30 key = request_key(&key_type_rxrpc, cell->anonymous_key->description, in afs_request_key() 39 _leave(" = {%x} [anon]", key_serial(cell->anonymous_key)); in afs_request_key() 40 return key_get(cell->anonymous_key); in afs_request_key() 166 if (key == vnode->volume->cell->anonymous_key) in afs_cache_permit() 238 if (key == auth_vnode->volume->cell->anonymous_key) { in afs_check_permit() 297 key = afs_request_key(vnode->volume->cell); in afs_permission()
|
D | dir.c | 513 key = afs_request_key(vnode->volume->cell); in afs_lookup() 582 key = afs_request_key(AFS_FS_S(dentry->d_sb)->volume->cell); in afs_d_revalidate() 746 key = afs_request_key(dvnode->volume->cell); in afs_mkdir() 811 key = afs_request_key(dvnode->volume->cell); in afs_rmdir() 857 key = afs_request_key(dvnode->volume->cell); in afs_unlink() 931 key = afs_request_key(dvnode->volume->cell); in afs_create() 1000 key = afs_request_key(dvnode->volume->cell); in afs_link() 1052 key = afs_request_key(dvnode->volume->cell); in afs_symlink() 1122 key = afs_request_key(orig_dvnode->volume->cell); in afs_rename()
|
D | Makefile | 7 cell.o \
|
D | internal.h | 46 struct afs_cell *cell; /* cell in which to find volume */ member 251 struct afs_cell *cell; /* cell to which volume belongs */ member 273 struct afs_cell *cell; /* cell in which server resides */ member 303 struct afs_cell *cell; /* cell to which belongs (unrefd ptr) */ member
|
D | file.c | 70 key = afs_request_key(vnode->volume->cell); in afs_open()
|
D | mntpt.c | 185 strcpy(options + 5, super->volume->cell->name); in afs_mntpt_do_automount()
|
D | inode.c | 386 key = afs_request_key(vnode->volume->cell); in afs_setattr()
|