Lines Matching refs:volume
28 read_lock(&op->volume->servers_lock); in afs_start_fs_iteration()
30 rcu_dereference_protected(op->volume->servers, in afs_start_fs_iteration()
31 lockdep_is_held(&op->volume->servers_lock))); in afs_start_fs_iteration()
32 read_unlock(&op->volume->servers_lock); in afs_start_fs_iteration()
73 static void afs_busy(struct afs_volume *volume, u32 abort_code) in afs_busy() argument
84 pr_notice("kAFS: Volume %llu '%s' is %s\n", volume->vid, volume->name, m); in afs_busy()
159 write_lock(&op->volume->servers_lock); in afs_select_fileserver()
161 write_unlock(&op->volume->servers_lock); in afs_select_fileserver()
163 set_bit(AFS_VOLUME_NEEDS_UPDATE, &op->volume->flags); in afs_select_fileserver()
164 error = afs_check_volume_status(op->volume, op); in afs_select_fileserver()
168 if (test_bit(AFS_VOLUME_DELETED, &op->volume->flags)) { in afs_select_fileserver()
176 if (rcu_access_pointer(op->volume->servers) == op->server_list) { in afs_select_fileserver()
196 if (!test_and_set_bit(AFS_VOLUME_OFFLINE, &op->volume->flags)) { in afs_select_fileserver()
197 afs_busy(op->volume, op->ac.abort_code); in afs_select_fileserver()
198 clear_bit(AFS_VOLUME_BUSY, &op->volume->flags); in afs_select_fileserver()
220 if (!test_and_set_bit(AFS_VOLUME_BUSY, &op->volume->flags)) { in afs_select_fileserver()
221 afs_busy(op->volume, op->ac.abort_code); in afs_select_fileserver()
222 clear_bit(AFS_VOLUME_OFFLINE, &op->volume->flags); in afs_select_fileserver()
251 set_bit(AFS_VOLUME_WAIT, &op->volume->flags); in afs_select_fileserver()
252 set_bit(AFS_VOLUME_NEEDS_UPDATE, &op->volume->flags); in afs_select_fileserver()
253 error = afs_check_volume_status(op->volume, op); in afs_select_fileserver()
266 if (rcu_access_pointer(op->volume->servers) == op->server_list) { in afs_select_fileserver()
274 clear_bit(AFS_VOLUME_OFFLINE, &op->volume->flags); in afs_select_fileserver()
275 clear_bit(AFS_VOLUME_BUSY, &op->volume->flags); in afs_select_fileserver()
316 error = afs_check_volume_status(op->volume, op); in afs_select_fileserver()
323 _debug("__ VOL %llx __", op->volume->vid); in afs_select_fileserver()
382 vnode->cb_v_break = vnode->volume->cb_v_break; in afs_select_fileserver()