Lines Matching full: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()
48 /* display one cell per line on subsequent lines */ 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()
126 if (IS_ERR(cell)) { in afs_proc_cells_write()
127 ret = PTR_ERR(cell); in afs_proc_cells_write()
131 if (test_and_set_bit(AFS_CELL_FL_NO_GC, &cell->flags)) in afs_proc_cells_write()
132 afs_unuse_cell(net, cell, afs_cell_trace_unuse_no_pin); in afs_proc_cells_write()
200 * Display the name of the current workstation cell.
204 struct afs_cell *cell; in afs_proc_rootcell_show() local
209 cell = net->ws_cell; in afs_proc_rootcell_show()
210 if (cell) in afs_proc_rootcell_show()
211 seq_printf(m, "%s\n", cell->name); in afs_proc_rootcell_show()
217 * Set the current workstation cell and optionally supply its list of volume
220 * echo "cell.name:192.168.231.14" >/proc/fs/afs/rootcell
257 * Display the list of volumes known to a cell.
278 __acquires(cell->proc_lock) in afs_proc_cell_volumes_start()
280 struct afs_cell *cell = pde_data(file_inode(m->file)); in afs_proc_cell_volumes_start() local
283 return seq_hlist_start_head_rcu(&cell->proc_volumes, *_pos); in afs_proc_cell_volumes_start()
289 struct afs_cell *cell = pde_data(file_inode(m->file)); in afs_proc_cell_volumes_next() local
291 return seq_hlist_next_rcu(v, &cell->proc_volumes, _pos); in afs_proc_cell_volumes_next()
295 __releases(cell->proc_lock) in afs_proc_cell_volumes_stop()
330 * Display the list of Volume Location servers we're using for a cell.
375 struct afs_cell *cell = pde_data(file_inode(m->file)); in afs_proc_cell_vlservers_start() local
380 vllist = rcu_dereference(cell->vl_servers); in afs_proc_cell_vlservers_start()
435 seq_puts(m, "UUID REF ACT CELL\n"); in afs_proc_servers_show()
446 server->cell->name); in afs_proc_servers_show()
673 * initialise /proc/fs/afs/<cell>/
675 int afs_proc_cell_setup(struct afs_cell *cell) in afs_proc_cell_setup() argument
678 struct afs_net *net = cell->net; in afs_proc_cell_setup()
680 _enter("%p{%s},%p", cell, cell->name, net->proc_afs); in afs_proc_cell_setup()
682 dir = proc_net_mkdir(net->net, cell->name, net->proc_afs); in afs_proc_cell_setup()
689 cell) || in afs_proc_cell_setup()
693 cell)) in afs_proc_cell_setup()
700 remove_proc_subtree(cell->name, net->proc_afs); in afs_proc_cell_setup()
707 * remove /proc/fs/afs/<cell>/
709 void afs_proc_cell_remove(struct afs_cell *cell) in afs_proc_cell_remove() argument
711 struct afs_net *net = cell->net; in afs_proc_cell_remove()
714 remove_proc_subtree(cell->name, net->proc_afs); in afs_proc_cell_remove()