Lines Matching refs:cell

35 	struct afs_cell *cell = list_entry(v, struct afs_cell, proc_link);  in afs_proc_cells_show()  local
44 seq_printf(m, "%3u %s\n", atomic_read(&cell->usage), cell->name); in afs_proc_cells_show()
112 struct afs_cell *cell; in afs_proc_cells_write() local
114 cell = afs_lookup_cell(net, name, strlen(name), args, true); in afs_proc_cells_write()
115 if (IS_ERR(cell)) { in afs_proc_cells_write()
116 ret = PTR_ERR(cell); in afs_proc_cells_write()
120 if (test_and_set_bit(AFS_CELL_FL_NO_GC, &cell->flags)) in afs_proc_cells_write()
121 afs_put_cell(net, cell); in afs_proc_cells_write()
143 struct afs_cell *cell; in afs_proc_rootcell_show() local
149 cell = rcu_dereference(net->ws_cell); in afs_proc_rootcell_show()
150 if (cell) in afs_proc_rootcell_show()
151 seq_printf(m, "%s\n", cell->name); in afs_proc_rootcell_show()
202 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_volumes_show() local
206 if (v == &cell->proc_volumes) { in afs_proc_cell_volumes_show()
219 __acquires(cell->proc_lock) in afs_proc_cell_volumes_start()
221 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_volumes_start() local
223 read_lock(&cell->proc_lock); in afs_proc_cell_volumes_start()
224 return seq_list_start_head(&cell->proc_volumes, *_pos); in afs_proc_cell_volumes_start()
230 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_volumes_next() local
232 return seq_list_next(v, &cell->proc_volumes, _pos); in afs_proc_cell_volumes_next()
236 __releases(cell->proc_lock) in afs_proc_cell_volumes_stop()
238 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_volumes_stop() local
240 read_unlock(&cell->proc_lock); in afs_proc_cell_volumes_stop()
272 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_vlservers_start() local
277 alist = rcu_dereference(cell->vl_addrs); in afs_proc_cell_vlservers_start()
294 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_vlservers_next() local
297 alist = rcu_dereference(cell->vl_addrs); in afs_proc_cell_vlservers_next()
552 int afs_proc_cell_setup(struct afs_cell *cell) in afs_proc_cell_setup() argument
555 struct afs_net *net = cell->net; in afs_proc_cell_setup()
557 _enter("%p{%s},%p", cell, cell->name, net->proc_afs); in afs_proc_cell_setup()
559 dir = proc_net_mkdir(net->net, cell->name, net->proc_afs); in afs_proc_cell_setup()
566 cell) || in afs_proc_cell_setup()
570 cell)) in afs_proc_cell_setup()
577 remove_proc_subtree(cell->name, net->proc_afs); in afs_proc_cell_setup()
586 void afs_proc_cell_remove(struct afs_cell *cell) in afs_proc_cell_remove() argument
588 struct afs_net *net = cell->net; in afs_proc_cell_remove()
591 remove_proc_subtree(cell->name, net->proc_afs); in afs_proc_cell_remove()