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 atomic_read(&cell->usage), in afs_proc_cells_show()
51 cell->dns_expiry - ktime_get_real_seconds(), in afs_proc_cells_show()
53 cell->name); in afs_proc_cells_show()
121 struct afs_cell *cell; in afs_proc_cells_write() local
123 cell = afs_lookup_cell(net, name, strlen(name), args, true); in afs_proc_cells_write()
124 if (IS_ERR(cell)) { in afs_proc_cells_write()
125 ret = PTR_ERR(cell); in afs_proc_cells_write()
129 if (test_and_set_bit(AFS_CELL_FL_NO_GC, &cell->flags)) in afs_proc_cells_write()
130 afs_put_cell(net, cell); in afs_proc_cells_write()
152 struct afs_cell *cell; in afs_proc_rootcell_show() local
158 cell = rcu_dereference(net->ws_cell); in afs_proc_rootcell_show()
159 if (cell) in afs_proc_rootcell_show()
160 seq_printf(m, "%s\n", cell->name); in afs_proc_rootcell_show()
211 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_volumes_show() local
215 if (v == &cell->proc_volumes) { in afs_proc_cell_volumes_show()
228 __acquires(cell->proc_lock) in afs_proc_cell_volumes_start()
230 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_volumes_start() local
232 read_lock(&cell->proc_lock); in afs_proc_cell_volumes_start()
233 return seq_list_start_head(&cell->proc_volumes, *_pos); in afs_proc_cell_volumes_start()
239 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_volumes_next() local
241 return seq_list_next(v, &cell->proc_volumes, _pos); in afs_proc_cell_volumes_next()
245 __releases(cell->proc_lock) in afs_proc_cell_volumes_stop()
247 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_volumes_stop() local
249 read_unlock(&cell->proc_lock); in afs_proc_cell_volumes_stop()
322 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_vlservers_start() local
327 vllist = rcu_dereference(cell->vl_servers); in afs_proc_cell_vlservers_start()
602 int afs_proc_cell_setup(struct afs_cell *cell) in afs_proc_cell_setup() argument
605 struct afs_net *net = cell->net; in afs_proc_cell_setup()
607 _enter("%p{%s},%p", cell, cell->name, net->proc_afs); in afs_proc_cell_setup()
609 dir = proc_net_mkdir(net->net, cell->name, net->proc_afs); in afs_proc_cell_setup()
616 cell) || in afs_proc_cell_setup()
620 cell)) in afs_proc_cell_setup()
627 remove_proc_subtree(cell->name, net->proc_afs); in afs_proc_cell_setup()
636 void afs_proc_cell_remove(struct afs_cell *cell) in afs_proc_cell_remove() argument
638 struct afs_net *net = cell->net; in afs_proc_cell_remove()
641 remove_proc_subtree(cell->name, net->proc_afs); in afs_proc_cell_remove()