dynroot.c (aaccf3c97418f169afdbb5855e9cbcbda34e90fd) dynroot.c (6b3944e42e2e554aa5a4be681ecd70dccd459114)
1/* AFS dynamic root handling
2 *
3 * Copyright (C) 2018 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version

--- 251 unchanged lines hidden (view full) ---

260 struct afs_cell *cell;
261 struct afs_net *net = afs_sb2net(sb);
262 int ret;
263
264 if (mutex_lock_interruptible(&net->proc_cells_lock) < 0)
265 return -ERESTARTSYS;
266
267 net->dynroot_sb = sb;
1/* AFS dynamic root handling
2 *
3 * Copyright (C) 2018 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version

--- 251 unchanged lines hidden (view full) ---

260 struct afs_cell *cell;
261 struct afs_net *net = afs_sb2net(sb);
262 int ret;
263
264 if (mutex_lock_interruptible(&net->proc_cells_lock) < 0)
265 return -ERESTARTSYS;
266
267 net->dynroot_sb = sb;
268 list_for_each_entry(cell, &net->proc_cells, proc_link) {
268 hlist_for_each_entry(cell, &net->proc_cells, proc_link) {
269 ret = afs_dynroot_mkdir(net, cell);
270 if (ret < 0)
271 goto error;
272 }
273
274 ret = 0;
275out:
276 mutex_unlock(&net->proc_cells_lock);

--- 34 unchanged lines hidden ---
269 ret = afs_dynroot_mkdir(net, cell);
270 if (ret < 0)
271 goto error;
272 }
273
274 ret = 0;
275out:
276 mutex_unlock(&net->proc_cells_lock);

--- 34 unchanged lines hidden ---