Lines Matching refs:cell
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, in afs_proc_cells_write()
128 if (IS_ERR(cell)) { in afs_proc_cells_write()
129 ret = PTR_ERR(cell); in afs_proc_cells_write()
133 if (test_and_set_bit(AFS_CELL_FL_NO_GC, &cell->flags)) in afs_proc_cells_write()
134 afs_unuse_cell(cell, afs_cell_trace_unuse_no_pin); in afs_proc_cells_write()
206 struct afs_cell *cell; in afs_proc_rootcell_show() local
211 cell = rcu_dereference_protected(net->ws_cell, lockdep_is_held(&net->cells_lock)); in afs_proc_rootcell_show()
212 if (cell) in afs_proc_rootcell_show()
213 seq_printf(m, "%s\n", cell->name); in afs_proc_rootcell_show()
286 __acquires(cell->proc_lock) in afs_proc_cell_volumes_start()
288 struct afs_cell *cell = pde_data(file_inode(m->file)); in afs_proc_cell_volumes_start() local
291 return seq_hlist_start_head_rcu(&cell->proc_volumes, *_pos); in afs_proc_cell_volumes_start()
297 struct afs_cell *cell = pde_data(file_inode(m->file)); in afs_proc_cell_volumes_next() local
299 return seq_hlist_next_rcu(v, &cell->proc_volumes, _pos); in afs_proc_cell_volumes_next()
303 __releases(cell->proc_lock) in afs_proc_cell_volumes_stop()
383 struct afs_cell *cell = pde_data(file_inode(m->file)); in afs_proc_cell_vlservers_start() local
388 vllist = rcu_dereference(cell->vl_servers); in afs_proc_cell_vlservers_start()
452 server->cell->name); in afs_proc_servers_show()
689 int afs_proc_cell_setup(struct afs_cell *cell) in afs_proc_cell_setup() argument
692 struct afs_net *net = cell->net; in afs_proc_cell_setup()
694 _enter("%p{%s},%p", cell, cell->name, net->proc_afs); in afs_proc_cell_setup()
696 dir = proc_net_mkdir(net->net, cell->name, net->proc_afs); in afs_proc_cell_setup()
703 cell) || in afs_proc_cell_setup()
707 cell)) in afs_proc_cell_setup()
714 remove_proc_subtree(cell->name, net->proc_afs); in afs_proc_cell_setup()
723 void afs_proc_cell_remove(struct afs_cell *cell) in afs_proc_cell_remove() argument
725 struct afs_net *net = cell->net; in afs_proc_cell_remove()
728 remove_proc_subtree(cell->name, net->proc_afs); in afs_proc_cell_remove()