| /fs/afs/ |
| A D | volume.c | 39 volume = p; in afs_insert_volume_into_cell() 54 return volume; in afs_insert_volume_into_cell() 63 trace_afs_volume(volume->debug_id, volume->vid, refcount_read(&volume->ref), in afs_remove_volume_from_cell() 85 if (!volume) in afs_alloc_volume() 121 return volume; in afs_alloc_volume() 125 kfree(volume); in afs_alloc_volume() 148 return volume; in afs_lookup_volume() 252 trace_afs_volume(volume->debug_id, volume->vid, refcount_read(&volume->ref), in afs_destroy_volume() 279 if (volume) { in afs_get_volume() 294 if (volume) { in afs_put_volume() [all …]
|
| A D | validation.c | 122 const struct afs_volume *volume = vnode->volume; in afs_check_validity() local 130 if (atomic_read(&volume->cb_v_check) != atomic_read(&volume->cb_v_break)) in afs_check_validity() 208 volume->creation_time = new; in afs_update_volume_creation_time() 251 volume->creation_time = new; in afs_update_volume_creation_time() 257 volume->creation_time = new; in afs_update_volume_creation_time() 274 volume->update_time = new; in afs_update_volume_update_time() 299 volume->update_time = new; in afs_update_volume_update_time() 333 struct afs_volume *volume = op->volume; in afs_update_volume_state() local 393 struct afs_volume *volume = vnode->volume; in afs_validate() local 421 atomic_read(&volume->cb_v_check) != atomic_read(&volume->cb_v_break)) { in afs_validate() [all …]
|
| A D | callback.c | 49 up_read(&volume->open_mmaps_lock); in afs_volume_init_callback() 65 trace_afs_cb_v_break(se->volume->vid, atomic_read(&se->volume->cb_v_break), in afs_init_callback_state() 114 struct afs_volume *volume = NULL; in afs_lookup_volume_rcu() local 130 if (volume->vid < vid) in afs_lookup_volume_rcu() 132 else if (volume->vid > vid) in afs_lookup_volume_rcu() 136 volume = NULL; in afs_lookup_volume_rcu() 139 if (volume && afs_try_get_volume(volume, afs_volume_trace_get_callback)) in afs_lookup_volume_rcu() 147 return volume; in afs_lookup_volume_rcu() 189 struct afs_volume *volume, in afs_break_one_callback() argument 218 struct afs_volume *volume; in afs_break_some_callbacks() local [all …]
|
| A D | server_list.c | 33 unsigned int type_mask = 1 << volume->type; in afs_alloc_server_list() 111 slist->servers[j].volume = volume; in afs_alloc_server_list() 125 afs_put_serverlist(volume->cell->net, slist); in afs_alloc_server_list() 164 down_write(&volume->cell->vs_lock); in afs_attach_volume_to_servers() 172 if (volume->vid <= pe->volume->vid) in afs_attach_volume_to_servers() 179 up_write(&volume->cell->vs_lock); in afs_attach_volume_to_servers() 192 down_write(&volume->cell->vs_lock); in afs_reattach_volume_to_servers() 218 if (volume->vid <= s->volume->vid) in afs_reattach_volume_to_servers() 229 up_write(&volume->cell->vs_lock); in afs_reattach_volume_to_servers() 242 down_write(&volume->cell->vs_lock); in afs_detach_volume_from_servers() [all …]
|
| A D | super.c | 159 struct afs_volume *volume = as->volume; in afs_show_devname() local 169 switch (volume->type) { in afs_show_devname() 382 if (ctx->volume) { in afs_validate_fc() 384 ctx->volume = NULL; in afs_validate_fc() 404 if (IS_ERR(volume)) in afs_validate_fc() 407 ctx->volume = volume; in afs_validate_fc() 426 as->volume && in afs_test_super() 427 as->volume->vid == ctx->volume->vid && in afs_test_super() 513 as->volume = afs_get_volume(ctx->volume, in afs_alloc_sbi() 537 if (as->volume) in afs_kill_super() [all …]
|
| A D | rotate.c | 43 read_lock(&op->volume->servers_lock); in afs_start_fs_iteration() 45 rcu_dereference_protected(op->volume->servers, in afs_start_fs_iteration() 46 lockdep_is_held(&op->volume->servers_lock))); in afs_start_fs_iteration() 47 read_unlock(&op->volume->servers_lock); in afs_start_fs_iteration() 126 op->volume->vid, op->volume->name, &op->server->uuid, m); in afs_busy() 243 write_lock(&op->volume->servers_lock); in afs_select_fileserver() 245 write_unlock(&op->volume->servers_lock); in afs_select_fileserver() 386 set_bit(AFS_VOLUME_WAIT, &op->volume->flags); in afs_select_fileserver() 413 if (op->volume->type != AFSVL_RWVOL) in afs_select_fileserver() 485 error = afs_check_volume_status(op->volume, op); in afs_select_fileserver() [all …]
|
| A D | vl_alias.c | 20 struct afs_volume *volume; in afs_sample_volume() local 30 volume = afs_create_volume(&fc); in afs_sample_volume() 31 _leave(" = %p", volume); in afs_sample_volume() 32 return volume; in afs_sample_volume() 141 struct afs_volume *volume, *pvol = NULL; in afs_query_for_alias_one() local 158 if (IS_ERR(volume)) { in afs_query_for_alias_one() 160 if (PTR_ERR(volume) != -ENOMEDIUM) in afs_query_for_alias_one() 161 return PTR_ERR(volume); in afs_query_for_alias_one() 170 if (pvol->vid == volume->vid) { in afs_query_for_alias_one() 172 if (afs_compare_volume_slists(volume, pvol)) in afs_query_for_alias_one() [all …]
|
| A D | fs_operation.c | 18 struct afs_operation *afs_alloc_operation(struct key *key, struct afs_volume *volume) in afs_alloc_operation() argument 29 key = afs_request_key(volume->cell); in afs_alloc_operation() 39 op->volume = afs_get_volume(volume, afs_volume_trace_get_new_op); in afs_alloc_operation() 40 op->net = volume->cell->net; in afs_alloc_operation() 41 op->cb_v_break = atomic_read(&volume->cb_v_break); in afs_alloc_operation() 42 op->pre_volsync.creation = volume->creation_time; in afs_alloc_operation() 43 op->pre_volsync.update = volume->update_time; in afs_alloc_operation() 251 op->cb_v_break = atomic_read(&op->volume->cb_v_break); in afs_begin_vnode_operation() 366 afs_put_volume(op->volume, afs_volume_trace_put_put_op); in afs_put_operation()
|
| A D | inode.c | 369 if (op->volume->type == AFSVL_RWVOL) in afs_apply_callback() 456 vnode->volume->name, in afs_fetch_status() 509 vnode->volume = as->volume; in afs_iget5_set() 548 vnode->volume->cache, in afs_get_inode_cache() 611 vnode->volume = as->volume; in afs_iget5_set_root() 612 vnode->fid.vid = as->volume->vid; in afs_iget5_set_root() 632 _enter(",{%llx},,", as->volume->vid); in afs_root_iget() 648 op = afs_alloc_operation(key, as->volume); in afs_root_iget() 688 if (vnode->volume && in afs_getattr() 691 key = afs_request_key(vnode->volume->cell); in afs_getattr() [all …]
|
| A D | file.c | 127 key = afs_request_key(vnode->volume->cell); in afs_open() 339 vnode->volume->name, in afs_issue_read() 345 op = afs_alloc_operation(key, vnode->volume); in afs_issue_read() 392 struct key *key = afs_request_key(vnode->volume->cell); in afs_init_request() 465 down_write(&vnode->volume->open_mmaps_lock); in afs_add_open_mmap() 468 list_add_tail(&vnode->cb_mmap_link, &vnode->volume->open_mmaps); in afs_add_open_mmap() 470 up_write(&vnode->volume->open_mmaps_lock); in afs_add_open_mmap() 479 down_write(&vnode->volume->open_mmaps_lock); in afs_drop_open_mmap() 488 up_write(&vnode->volume->open_mmaps_lock); in afs_drop_open_mmap()
|
| A D | xattr.c | 46 op = afs_alloc_operation(NULL, vnode->volume); in afs_xattr_get_acl() 111 op = afs_alloc_operation(NULL, vnode->volume); in afs_xattr_set_acl() 169 op = afs_alloc_operation(NULL, vnode->volume); in afs_xattr_get_yfs() 244 op = afs_alloc_operation(NULL, vnode->volume); in afs_xattr_set_yfs() 274 struct afs_cell *cell = vnode->volume->cell; in afs_xattr_get_cell() 339 const char *volname = vnode->volume->name; in afs_xattr_get_volume()
|
| A D | mntpt.c | 85 if (src_as->volume && src_as->volume->type == AFSVL_RWVOL) { in afs_mntpt_set_params() 146 if (src_as->volume && src_as->volume->type == AFSVL_BACKVOL && in afs_mntpt_set_params()
|
| A D | internal.h | 62 struct afs_volume *volume; /* volume record */ member 252 struct afs_volume *volume; /* volume record */ member 595 struct afs_volume *volume; member 686 struct afs_volume *volume; /* volume on which vnode resides */ member 866 struct afs_volume *volume; /* Volume being accessed */ member 1040 atomic_read(&vnode->volume->cb_ro_snapshot) + in afs_cb_is_broken() 1041 atomic_read(&vnode->volume->cb_scrub)); in afs_cb_is_broken() 1575 struct afs_server_list *afs_alloc_server_list(struct afs_volume *volume, 1579 void afs_attach_volume_to_servers(struct afs_volume *volume, struct afs_server_list *slist); 1662 bool afs_try_get_volume(struct afs_volume *volume, enum afs_volume_trace reason); [all …]
|
| /fs/netfs/ |
| A D | fscache_volume.c | 27 return volume; in fscache_get_volume() 39 return volume; in fscache_try_get_volume() 233 volume = kzalloc(struct_size(volume, coherency, coherency_len), in fscache_alloc_volume() 235 if (!volume) in fscache_alloc_volume() 268 return volume; in fscache_alloc_volume() 271 kfree(volume); in fscache_alloc_volume() 340 if (!volume) in __fscache_acquire_volume() 349 return volume; in __fscache_acquire_volume() 413 kfree(volume); in fscache_free_volume() 424 if (volume) { in fscache_put_volume() [all …]
|
| A D | fscache_cookie.c | 48 cookie->volume->debug_id, in fscache_print_cookie() 49 cookie->volume->key); in fscache_print_cookie() 306 a->volume != b->volume || in fscache_cookie_same() 326 struct fscache_volume *volume, in fscache_alloc_cookie() argument 340 cookie->volume = volume; in fscache_alloc_cookie() 451 struct fscache_volume *volume, in __fscache_acquire_cookie() argument 459 _enter("V=%x", volume->debug_id); in __fscache_acquire_cookie() 510 if (!cookie->volume->cache_priv) { in fscache_perform_lookup() 512 if (!cookie->volume->cache_priv) { in fscache_perform_lookup() 1010 struct fscache_volume *volume = cookie->volume; in fscache_put_cookie() local [all …]
|
| A D | fscache_io.c | 29 if (!fscache_cache_is_live(cookie->volume->cache)) { in fscache_wait_for_operation() 60 return cookie->volume->cache->ops->begin_operation(cres, want_state); in fscache_wait_for_operation() 117 if (!cookie->volume->cache->ops->begin_operation(cres, want_state)) in fscache_begin_operation() 284 cookie->volume->cache->ops->resize_cookie(&cres, new_size); in __fscache_resize_cookie()
|
| /fs/cachefiles/ |
| A D | volume.c | 19 struct cachefiles_volume *volume; in cachefiles_acquire_volume() local 31 if (!volume) in cachefiles_acquire_volume() 33 volume->vcookie = vcookie; in cachefiles_acquire_volume() 34 volume->cache = cache; in cachefiles_acquire_volume() 51 volume->dentry = vdentry; in cachefiles_acquire_volume() 75 volume->fanout[i] = fan; in cachefiles_acquire_volume() 80 vcookie->cache_priv = volume; in cachefiles_acquire_volume() 87 list_add(&volume->cache_link, &volume->cache->volumes); in cachefiles_acquire_volume() 101 kfree(volume); in cachefiles_acquire_volume() 119 kfree(volume); in __cachefiles_free_volume() [all …]
|
| A D | xattr.c | 215 unsigned int len = volume->vcookie->coherency_len; in cachefiles_set_volume_xattr() 216 const void *p = volume->vcookie->coherency; in cachefiles_set_volume_xattr() 217 struct dentry *dentry = volume->dentry; in cachefiles_set_volume_xattr() 220 _enter("%x,#%d", volume->vcookie->debug_id, len); in cachefiles_set_volume_xattr() 227 memcpy(buf->data, p, volume->vcookie->coherency_len); in cachefiles_set_volume_xattr() 231 ret = mnt_want_write(volume->cache->mnt); in cachefiles_set_volume_xattr() 236 mnt_drop_write(volume->cache->mnt); in cachefiles_set_volume_xattr() 263 struct dentry *dentry = volume->dentry; in cachefiles_check_volume_xattr() 264 unsigned int len = volume->vcookie->coherency_len; in cachefiles_check_volume_xattr() 265 const void *p = volume->vcookie->coherency; in cachefiles_check_volume_xattr() [all …]
|
| A D | interface.c | 24 struct fscache_volume *vcookie = cookie->volume; in cachefiles_alloc_object() 25 struct cachefiles_volume *volume = vcookie->cache_priv; in cachefiles_alloc_object() local 34 if (cachefiles_ondemand_init_obj_info(object, volume)) { in cachefiles_alloc_object() 43 object->volume = volume; in cachefiles_alloc_object() 97 cache = object->volume->cache->cache; in cachefiles_put_object() 235 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_shorten_object() 282 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_resize_cookie() 363 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_withdraw_cookie() 429 struct cachefiles_volume *volume = object->volume; in cachefiles_invalidate_cookie() local 430 struct dentry *fan = volume->fanout[(u8)cookie->key_hash]; in cachefiles_invalidate_cookie() [all …]
|
| A D | namei.c | 69 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_unmark_inode_in_use() 422 struct cachefiles_volume *volume = object->volume; in cachefiles_delete_object() local 433 ret = cachefiles_unlink(volume->cache, object, fan, dentry, why); in cachefiles_delete_object() 445 struct cachefiles_volume *volume = object->volume; in cachefiles_create_tmpfile() local 446 struct cachefiles_cache *cache = volume->cache; in cachefiles_create_tmpfile() 527 ret = cachefiles_has_space(object->volume->cache, 1, 0, in cachefiles_create_file() 550 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_open_file() 624 struct cachefiles_volume *volume = object->volume; in cachefiles_look_up_object() local 649 ret = cachefiles_bury_object(volume->cache, object, fan, dentry, in cachefiles_look_up_object() 676 struct cachefiles_volume *volume = object->volume; in cachefiles_commit_tmpfile() local [all …]
|
| A D | cache.c | 321 struct cachefiles_volume *volume; in cachefiles_withdraw_fscache_volumes() local 328 volume = list_entry(cur, struct cachefiles_volume, cache_link); in cachefiles_withdraw_fscache_volumes() 330 if (atomic_read(&volume->vcookie->n_accesses) == 0) in cachefiles_withdraw_fscache_volumes() 333 vcookie = fscache_try_get_volume(volume->vcookie, in cachefiles_withdraw_fscache_volumes() 356 struct cachefiles_volume *volume = NULL; in cachefiles_withdraw_volumes() local 360 volume = list_first_entry(&cache->volumes, in cachefiles_withdraw_volumes() 362 vcookie = fscache_try_get_volume(volume->vcookie, in cachefiles_withdraw_volumes() 369 list_del_init(&volume->cache_link); in cachefiles_withdraw_volumes() 372 if (!volume) in cachefiles_withdraw_volumes() 375 cachefiles_withdraw_volume(volume); in cachefiles_withdraw_volumes()
|
| A D | ondemand.c | 31 cache = object->volume->cache; in cachefiles_ondemand_fd_release() 62 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_fd_write_iter() 304 cache = object->volume->cache; in cachefiles_ondemand_get_fd() 613 struct fscache_volume *volume = object->volume->vcookie; in cachefiles_ondemand_init_open_req() local 622 volume_key_size = volume->key[0] + 1; in cachefiles_ondemand_init_open_req() 623 volume_key = volume->key + 1; in cachefiles_ondemand_init_open_req() 675 struct fscache_volume *volume = object->volume->vcookie; in cachefiles_ondemand_init_object() local 690 volume_key_size = volume->key[0] + 1; in cachefiles_ondemand_init_object() 715 cache = object->volume->cache; in cachefiles_ondemand_clean_object() 732 struct cachefiles_volume *volume) in cachefiles_ondemand_init_obj_info() argument [all …]
|
| A D | internal.h | 67 struct cachefiles_volume *volume; /* Cache volume that holds this object */ member 321 struct cachefiles_volume *volume); 371 struct cachefiles_volume *volume) in cachefiles_ondemand_init_obj_info() argument 408 void cachefiles_acquire_volume(struct fscache_volume *volume); 409 void cachefiles_free_volume(struct fscache_volume *volume); 410 void cachefiles_withdraw_volume(struct cachefiles_volume *volume); 422 extern bool cachefiles_set_volume_xattr(struct cachefiles_volume *volume); 423 extern int cachefiles_check_volume_xattr(struct cachefiles_volume *volume); 441 ___cache = (object)->volume->cache; \
|
| /fs/erofs/ |
| A D | fscache.c | 406 struct fscache_volume *volume; in erofs_fscache_register_volume() local 415 volume = fscache_acquire_volume(name, NULL, NULL, 0); in erofs_fscache_register_volume() 416 if (IS_ERR_OR_NULL(volume)) { in erofs_fscache_register_volume() 418 ret = volume ? PTR_ERR(volume) : -EOPNOTSUPP; in erofs_fscache_register_volume() 419 volume = NULL; in erofs_fscache_register_volume() 422 sbi->volume = volume; in erofs_fscache_register_volume() 456 domain->volume = sbi->volume; in erofs_fscache_init_domain() 477 sbi->volume = domain->volume; in erofs_fscache_register_domain() 491 struct fscache_volume *volume = EROFS_SB(sb)->volume; in erofs_fscache_acquire_cookie() local 672 fscache_relinquish_volume(sbi->volume, NULL, false); in erofs_fscache_unregister_fs() [all …]
|
| /fs/ntfs3/ |
| A D | super.c | 473 sbi->volume.major_ver, sbi->volume.minor_ver, in ntfs3_volinfo() 494 seq_printf(m, "%s\n", sbi->volume.label); in ntfs3_label_show() 666 if (sbi->volume.ni) { in ntfs3_put_sbi() 667 iput(&sbi->volume.ni->vfs_inode); in ntfs3_put_sbi() 668 sbi->volume.ni = NULL; in ntfs3_put_sbi() 1136 sbi->volume.blocks = sbi->volume.size >> sb->s_blocksize_bits; in ntfs_init_from_boot() 1274 sizeof(sbi->volume.label)); in ntfs_fill_super() 1276 sbi->volume.label[0] = 0; in ntfs_fill_super() 1293 sbi->volume.flags = info->flags; in ntfs_fill_super() 1294 sbi->volume.ni = ni; in ntfs_fill_super() [all …]
|