/fs/afs/ |
D | cell.c | 55 struct afs_cell *cell = NULL; in afs_find_cell_locked() local 67 cell = net->ws_cell; in afs_find_cell_locked() 68 if (!cell) in afs_find_cell_locked() 75 cell = rb_entry(p, struct afs_cell, net_node); in afs_find_cell_locked() 77 n = strncasecmp(cell->name, name, in afs_find_cell_locked() 78 min_t(size_t, cell->name_len, namesz)); in afs_find_cell_locked() 80 n = cell->name_len - namesz; in afs_find_cell_locked() 92 return afs_use_cell(cell, reason); in afs_find_cell_locked() 102 struct afs_cell *cell; in afs_find_cell() local 105 cell = afs_find_cell_locked(net, name, namesz, reason); in afs_find_cell() [all …]
|
D | vl_alias.c | 17 static struct afs_volume *afs_sample_volume(struct afs_cell *cell, struct key *key, in afs_sample_volume() argument 25 .net = cell->net, in afs_sample_volume() 26 .cell = cell, in afs_sample_volume() 156 static int afs_compare_cell_roots(struct afs_cell *cell) in afs_compare_cell_roots() argument 164 hlist_for_each_entry_rcu(p, &cell->net->proc_cells, proc_link) { in afs_compare_cell_roots() 165 if (p == cell || p->alias_of) in afs_compare_cell_roots() 170 if (afs_compare_volume_slists(cell->root_volume, p->root_volume) != 0) in afs_compare_cell_roots() 180 cell->alias_of = afs_use_cell(p, afs_cell_trace_use_alias); in afs_compare_cell_roots() 187 static int afs_query_for_alias_one(struct afs_cell *cell, struct key *key, in afs_query_for_alias_one() argument 203 _enter("%s:%s", cell->name, pvol->name); in afs_query_for_alias_one() [all …]
|
D | vl_rotate.c | 17 bool afs_begin_vlserver_operation(struct afs_vl_cursor *vc, struct afs_cell *cell, in afs_begin_vlserver_operation() argument 21 vc->cell = cell; in afs_begin_vlserver_operation() 41 struct afs_cell *cell = vc->cell; in afs_start_vl_iteration() local 44 if (cell->dns_source == DNS_RECORD_UNAVAILABLE || in afs_start_vl_iteration() 45 cell->dns_expiry <= ktime_get_real_seconds()) { in afs_start_vl_iteration() 46 dns_lookup_count = smp_load_acquire(&cell->dns_lookup_count); in afs_start_vl_iteration() 47 set_bit(AFS_CELL_FL_DO_LOOKUP, &cell->flags); in afs_start_vl_iteration() 48 afs_queue_cell(cell, afs_cell_trace_get_queue_dns); in afs_start_vl_iteration() 50 if (cell->dns_source == DNS_RECORD_UNAVAILABLE) { in afs_start_vl_iteration() 52 &cell->dns_lookup_count, in afs_start_vl_iteration() [all …]
|
D | super.c | 159 struct afs_cell *cell = as->cell; in afs_show_devname() local 182 seq_printf(m, "%c%s:%s%s", pref, cell->name, volume->name, suf); in afs_show_devname() 227 struct afs_cell *cell; in afs_parse_source() local 289 cellnamesz, cellnamesz, cellname ?: "", ctx->cell); in afs_parse_source() 293 cell = afs_lookup_cell(ctx->net, cellname, cellnamesz, in afs_parse_source() 295 if (IS_ERR(cell)) { in afs_parse_source() 298 return PTR_ERR(cell); in afs_parse_source() 300 afs_unuse_cell(ctx->net, ctx->cell, afs_cell_trace_unuse_parse); in afs_parse_source() 301 afs_see_cell(cell, afs_cell_trace_see_source); in afs_parse_source() 302 ctx->cell = cell; in afs_parse_source() [all …]
|
D | proc.c | 37 struct afs_cell *cell; in afs_proc_cells_show() local 45 cell = list_entry(v, struct afs_cell, proc_link); in afs_proc_cells_show() 46 vllist = rcu_dereference(cell->vl_servers); in afs_proc_cells_show() 50 refcount_read(&cell->ref), in afs_proc_cells_show() 51 atomic_read(&cell->active), in afs_proc_cells_show() 52 cell->dns_expiry - ktime_get_real_seconds(), in afs_proc_cells_show() 54 cell->state, in afs_proc_cells_show() 55 cell->name); in afs_proc_cells_show() 123 struct afs_cell *cell; in afs_proc_cells_write() local 125 cell = afs_lookup_cell(net, name, strlen(name), args, true); in afs_proc_cells_write() [all …]
|
D | volume.c | 19 static struct afs_volume *afs_insert_volume_into_cell(struct afs_cell *cell, in afs_insert_volume_into_cell() argument 25 write_seqlock(&cell->volume_lock); in afs_insert_volume_into_cell() 27 pp = &cell->volumes.rb_node; in afs_insert_volume_into_cell() 42 rb_replace_node_rcu(&p->cell_node, &volume->cell_node, &cell->volumes); in afs_insert_volume_into_cell() 47 rb_insert_color(&volume->cell_node, &cell->volumes); in afs_insert_volume_into_cell() 48 hlist_add_head_rcu(&volume->proc_link, &cell->proc_volumes); in afs_insert_volume_into_cell() 51 write_sequnlock(&cell->volume_lock); in afs_insert_volume_into_cell() 58 struct afs_cell *cell = volume->cell; in afs_remove_volume_from_cell() local 61 trace_afs_volume(volume->vid, refcount_read(&cell->ref), in afs_remove_volume_from_cell() 63 write_seqlock(&cell->volume_lock); in afs_remove_volume_from_cell() [all …]
|
D | dynroot.c | 112 struct afs_cell *cell; in afs_probe_cell_name() local 127 cell = afs_find_cell(net, name, len, afs_cell_trace_use_probe); in afs_probe_cell_name() 128 if (!IS_ERR(cell)) { in afs_probe_cell_name() 129 afs_unuse_cell(net, cell, afs_cell_trace_unuse_probe); in afs_probe_cell_name() 193 struct afs_cell *cell; in afs_lookup_atcell() local 208 cell = net->ws_cell; in afs_lookup_atcell() 209 if (cell) { in afs_lookup_atcell() 210 len = cell->name_len; in afs_lookup_atcell() 211 memcpy(name, cell->name, len + 1); in afs_lookup_atcell() 216 if (!cell) in afs_lookup_atcell() [all …]
|
D | callback.c | 40 struct afs_cell *cell = server->cell; in afs_server_init_callback_work() local 42 down_read(&cell->fs_open_mmaps_lock); in afs_server_init_callback_work() 44 list_for_each_entry(vnode, &cell->fs_open_mmaps, cb_mmap_link) { in afs_server_init_callback_work() 51 up_read(&cell->fs_open_mmaps_lock); in afs_server_init_callback_work() 63 atomic_inc(&server->cell->fs_s_break); in afs_init_callback_state() 64 if (!list_empty(&server->cell->fs_open_mmaps)) in afs_init_callback_state() 108 static struct afs_volume *afs_lookup_volume_rcu(struct afs_cell *cell, in afs_lookup_volume_rcu() argument 121 read_seqbegin_or_lock(&cell->volume_lock, &seq); in afs_lookup_volume_rcu() 123 p = rcu_dereference_raw(cell->volumes.rb_node); in afs_lookup_volume_rcu() 136 } while (need_seqretry(&cell->volume_lock, seq)); in afs_lookup_volume_rcu() [all …]
|
D | mntpt.c | 76 struct afs_cell *cell; in afs_mntpt_set_params() local 89 if (ctx->cell) { in afs_mntpt_set_params() 90 afs_unuse_cell(ctx->net, ctx->cell, afs_cell_trace_unuse_mntpt); in afs_mntpt_set_params() 91 ctx->cell = NULL; in afs_mntpt_set_params() 110 cell = afs_lookup_cell(ctx->net, p, size, NULL, false); in afs_mntpt_set_params() 111 if (IS_ERR(cell)) { in afs_mntpt_set_params() 113 return PTR_ERR(cell); in afs_mntpt_set_params() 115 ctx->cell = cell; in afs_mntpt_set_params() 125 if (src_as->cell) in afs_mntpt_set_params() 126 ctx->cell = afs_use_cell(src_as->cell, afs_cell_trace_use_mntpt); in afs_mntpt_set_params()
|
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_net(&key_type_rxrpc, cell->anonymous_key->description, in afs_request_key() 31 cell->net->net, NULL); 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() 51 struct key *afs_request_key_rcu(struct afs_cell *cell) in afs_request_key_rcu() argument 55 _enter("{%x}", key_serial(cell->anonymous_key)); in afs_request_key_rcu() 57 _debug("key %s", cell->anonymous_key->description); in afs_request_key_rcu() [all …]
|
D | server.c | 138 static struct afs_server *afs_install_server(struct afs_cell *cell, in afs_install_server() argument 143 struct afs_net *net = cell->net; in afs_install_server() 164 if (server->cell == cell) in afs_install_server() 219 static struct afs_server *afs_alloc_server(struct afs_cell *cell, in afs_alloc_server() argument 224 struct afs_net *net = cell->net; in afs_alloc_server() 243 server->cell = cell; in afs_alloc_server() 259 static struct afs_addr_list *afs_vl_lookup_addrs(struct afs_cell *cell, in afs_vl_lookup_addrs() argument 267 if (afs_begin_vlserver_operation(&vc, cell, key)) { in afs_vl_lookup_addrs() 284 struct afs_server *afs_lookup_server(struct afs_cell *cell, struct key *key, in afs_lookup_server() argument 290 _enter("%p,%pU", cell->net, uuid); in afs_lookup_server() [all …]
|
D | vl_list.c | 150 struct afs_vlserver_list *afs_extract_vlserver_list(struct afs_cell *cell, in afs_extract_vlserver_list() argument 185 read_lock(&cell->vl_servers_lock); in afs_extract_vlserver_list() 187 rcu_dereference_protected(cell->vl_servers, in afs_extract_vlserver_list() 188 lockdep_is_held(&cell->vl_servers_lock))); in afs_extract_vlserver_list() 189 read_unlock(&cell->vl_servers_lock); in afs_extract_vlserver_list() 259 afs_put_vlserver(cell->net, server); in afs_extract_vlserver_list() 269 afs_put_vlserver(cell->net, server); in afs_extract_vlserver_list() 313 afs_put_vlserverlist(cell->net, previous); in afs_extract_vlserver_list() 318 afs_put_vlserver(cell->net, server); in afs_extract_vlserver_list() 320 afs_put_vlserverlist(cell->net, vllist); in afs_extract_vlserver_list() [all …]
|
D | addr_list.c | 241 struct afs_vlserver_list *afs_dns_query(struct afs_cell *cell, time64_t *_expiry) in afs_dns_query() argument 247 _enter("%s", cell->name); in afs_dns_query() 249 ret = dns_query(cell->net->net, "afsdb", cell->name, cell->name_len, in afs_dns_query() 260 vllist = afs_extract_vlserver_list(cell, result, ret); in afs_dns_query() 262 vllist = afs_parse_text_addrs(cell->net, result, ret, ',', in afs_dns_query()
|
D | server_list.c | 27 struct afs_server_list *afs_alloc_server_list(struct afs_cell *cell, in afs_alloc_server_list() argument 55 server = afs_lookup_server(cell, key, &vldb->fs_server[i], in afs_alloc_server_list() 73 afs_put_server(cell->net, server, in afs_alloc_server_list() 95 afs_put_serverlist(cell->net, slist); in afs_alloc_server_list()
|
D | xattr.c | 274 struct afs_cell *cell = vnode->volume->cell; in afs_xattr_get_cell() local 277 namelen = cell->name_len; in afs_xattr_get_cell() 282 memcpy(buffer, cell->name, namelen); in afs_xattr_get_cell()
|
D | file.c | 129 key = afs_request_key(vnode->volume->cell); in afs_open() 503 down_write(&vnode->volume->cell->fs_open_mmaps_lock); in afs_add_open_mmap() 507 &vnode->volume->cell->fs_open_mmaps); in afs_add_open_mmap() 509 up_write(&vnode->volume->cell->fs_open_mmaps_lock); in afs_add_open_mmap() 518 down_write(&vnode->volume->cell->fs_open_mmaps_lock); in afs_drop_open_mmap() 523 up_write(&vnode->volume->cell->fs_open_mmaps_lock); in afs_drop_open_mmap()
|
D | internal.h | 59 struct afs_cell *cell; /* cell in which to find volume */ member 228 struct afs_cell *cell; /* The cell in which the volume resides */ member 500 struct afs_cell *cell; /* Cell to which belongs (pins ref) */ member 580 struct afs_cell *cell; /* Cell to which belongs (pins ref) */ member 736 struct afs_cell *cell; /* The cell we're querying */ member 1249 static inline int afs_proc_cell_setup(struct afs_cell *cell) { return 0; } in afs_proc_cell_setup() argument 1250 static inline void afs_proc_cell_remove(struct afs_cell *cell) {} in afs_proc_cell_remove() argument
|
D | vlclient.c | 135 struct afs_net *net = vc->cell->net; in afs_vl_get_entry_by_name_u() 274 struct afs_net *net = vc->cell->net; in afs_vl_get_addrs_u() 624 struct afs_net *net = vc->cell->net; in afs_yfsvl_get_endpoints() 738 struct afs_net *net = vc->cell->net; in afs_yfsvl_get_cell_name()
|
D | fs_operation.c | 29 key = afs_request_key(volume->cell); in afs_alloc_operation() 40 op->net = volume->cell->net; in afs_alloc_operation()
|
D | Makefile | 12 cell.o \
|
D | inode.c | 591 if (vnode->cb_fs_s_break == atomic_read(&vnode->volume->cell->fs_s_break)) in afs_check_server_good() 740 key = afs_request_key(vnode->volume->cell); in afs_getattr()
|
D | rotate.c | 381 vnode->cb_fs_s_break = atomic_read(&server->cell->fs_s_break); in afs_select_fileserver()
|
D | dir.c | 1045 key = afs_request_key(dvnode->volume->cell); in afs_lookup() 1154 key = afs_request_key(AFS_FS_S(dentry->d_sb)->volume->cell); in afs_d_revalidate()
|