Home
last modified time | relevance | path

Searched refs:cell (Results 1 – 22 of 22) sorted by relevance

/fs/afs/
Dcell.c55 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 …]
Dvl_alias.c17 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 …]
Dvl_rotate.c17 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 …]
Dsuper.c159 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 …]
Dproc.c37 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 atomic_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 …]
Dvolume.c19 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_insert_color(&volume->cell_node, &cell->volumes); in afs_insert_volume_into_cell()
43 hlist_add_head_rcu(&volume->proc_link, &cell->proc_volumes); in afs_insert_volume_into_cell()
46 write_sequnlock(&cell->volume_lock); in afs_insert_volume_into_cell()
53 struct afs_cell *cell = volume->cell; in afs_remove_volume_from_cell() local
58 write_seqlock(&cell->volume_lock); in afs_remove_volume_from_cell()
60 rb_erase(&volume->cell_node, &cell->volumes); in afs_remove_volume_from_cell()
61 write_sequnlock(&cell->volume_lock); in afs_remove_volume_from_cell()
[all …]
Ddynroot.c112 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 …]
Dmntpt.c76 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()
Dsecurity.c23 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 …]
Dserver.c138 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()
242 server->cell = cell; in afs_alloc_server()
258 static struct afs_addr_list *afs_vl_lookup_addrs(struct afs_cell *cell, in afs_vl_lookup_addrs() argument
266 if (afs_begin_vlserver_operation(&vc, cell, key)) { in afs_vl_lookup_addrs()
283 struct afs_server *afs_lookup_server(struct afs_cell *cell, struct key *key, in afs_lookup_server() argument
289 _enter("%p,%pU", cell->net, uuid); in afs_lookup_server()
[all …]
Dvl_list.c157 struct afs_vlserver_list *afs_extract_vlserver_list(struct afs_cell *cell, in afs_extract_vlserver_list() argument
192 read_lock(&cell->vl_servers_lock); in afs_extract_vlserver_list()
194 rcu_dereference_protected(cell->vl_servers, in afs_extract_vlserver_list()
195 lockdep_is_held(&cell->vl_servers_lock))); in afs_extract_vlserver_list()
196 read_unlock(&cell->vl_servers_lock); in afs_extract_vlserver_list()
266 afs_put_vlserver(cell->net, server); in afs_extract_vlserver_list()
276 afs_put_vlserver(cell->net, server); in afs_extract_vlserver_list()
320 afs_put_vlserverlist(cell->net, previous); in afs_extract_vlserver_list()
325 afs_put_vlserver(cell->net, server); in afs_extract_vlserver_list()
327 afs_put_vlserverlist(cell->net, vllist); in afs_extract_vlserver_list()
[all …]
Dcallback.c68 static struct afs_volume *afs_lookup_volume_rcu(struct afs_cell *cell, in afs_lookup_volume_rcu() argument
81 read_seqbegin_or_lock(&cell->volume_lock, &seq); in afs_lookup_volume_rcu()
83 p = rcu_dereference_raw(cell->volumes.rb_node); in afs_lookup_volume_rcu()
96 } while (need_seqretry(&cell->volume_lock, seq)); in afs_lookup_volume_rcu()
98 done_seqretry(&cell->volume_lock, seq); in afs_lookup_volume_rcu()
151 volume = afs_lookup_volume_rcu(server->cell, vid); in afs_break_some_callbacks()
Daddr_list.c241 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()
Dserver_list.c27 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()
Dxattr.c272 struct afs_cell *cell = vnode->volume->cell; in afs_xattr_get_cell() local
275 namelen = cell->name_len; in afs_xattr_get_cell()
280 memcpy(buffer, cell->name, namelen); in afs_xattr_get_cell()
Dinternal.h57 struct afs_cell *cell; /* cell in which to find volume */ member
223 struct afs_cell *cell; /* The cell in which the volume resides */ member
492 struct afs_cell *cell; /* Cell to which belongs (pins ref) */ member
570 struct afs_cell *cell; /* Cell to which belongs (pins ref) */ member
721 struct afs_cell *cell; /* The cell we're querying */ member
1230 static inline int afs_proc_cell_setup(struct afs_cell *cell) { return 0; } in afs_proc_cell_setup() argument
1231 static inline void afs_proc_cell_remove(struct afs_cell *cell) {} in afs_proc_cell_remove() argument
Dvlclient.c135 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()
623 struct afs_net *net = vc->cell->net; in afs_yfsvl_get_endpoints()
737 struct afs_net *net = vc->cell->net; in afs_yfsvl_get_cell_name()
Dfs_operation.c29 key = afs_request_key(volume->cell); in afs_alloc_operation()
40 op->net = volume->cell->net; in afs_alloc_operation()
DMakefile12 cell.o \
Dfile.c123 key = afs_request_key(vnode->volume->cell); in afs_open()
402 key = afs_request_key(AFS_FS_S(inode->i_sb)->cell); in afs_readpage()
Ddir.c967 key = afs_request_key(dvnode->volume->cell); in afs_lookup()
1076 key = afs_request_key(AFS_FS_S(dentry->d_sb)->volume->cell); in afs_d_revalidate()
Dinode.c741 key = afs_request_key(vnode->volume->cell); in afs_getattr()