/fs/fscache/ |
D | volume.c | 20 struct fscache_volume *fscache_get_volume(struct fscache_volume *volume, in fscache_get_volume() argument 25 __refcount_inc(&volume->ref, &ref); in fscache_get_volume() 26 trace_fscache_volume(volume->debug_id, ref + 1, where); in fscache_get_volume() 27 return volume; in fscache_get_volume() 30 static void fscache_see_volume(struct fscache_volume *volume, in fscache_see_volume() argument 33 int ref = refcount_read(&volume->ref); in fscache_see_volume() 35 trace_fscache_volume(volume->debug_id, ref, where); in fscache_see_volume() 41 static void __fscache_begin_volume_access(struct fscache_volume *volume, in __fscache_begin_volume_access() argument 47 n_accesses = atomic_inc_return(&volume->n_accesses); in __fscache_begin_volume_access() 49 trace_fscache_access_volume(volume->debug_id, cookie ? cookie->debug_id : 0, in __fscache_begin_volume_access() [all …]
|
D | cookie.c | 48 cookie->volume->debug_id, in fscache_print_cookie() 49 cookie->volume->key); in fscache_print_cookie() 185 !fscache_cache_is_live(cookie->volume->cache)) { in fscache_begin_cookie_access() 295 cookie->key_hash = fscache_hash(cookie->volume->key_hash, in fscache_set_key() 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() 422 fscache_get_volume(candidate->volume, fscache_volume_get_cookie); in fscache_hash_cookie() 423 atomic_inc(&candidate->volume->n_cookies); in fscache_hash_cookie() 451 struct fscache_volume *volume, in __fscache_acquire_cookie() argument [all …]
|
D | internal.h | 146 struct fscache_volume *fscache_get_volume(struct fscache_volume *volume, 148 void fscache_put_volume(struct fscache_volume *volume, 150 bool fscache_begin_volume_access(struct fscache_volume *volume, 153 void fscache_create_volume(struct fscache_volume *volume, bool wait);
|
D | io.c | 30 if (!fscache_cache_is_live(cookie->volume->cache)) { in fscache_wait_for_operation() 61 return cookie->volume->cache->ops->begin_operation(cres, want_state); in fscache_wait_for_operation() 116 if (!cookie->volume->cache->ops->begin_operation(cres, want_state)) in fscache_begin_operation() 321 cookie->volume->cache->ops->resize_cookie(&cres, new_size); in __fscache_resize_cookie()
|
/fs/afs/ |
D | volume.c | 19 struct afs_volume *volume) in afs_insert_volume_into_cell() argument 30 if (p->vid < volume->vid) { in afs_insert_volume_into_cell() 32 } else if (p->vid > volume->vid) { in afs_insert_volume_into_cell() 36 volume = p; in afs_insert_volume_into_cell() 40 set_bit(AFS_VOLUME_RM_TREE, &volume->flags); in afs_insert_volume_into_cell() 41 rb_replace_node_rcu(&p->cell_node, &volume->cell_node, &cell->volumes); in afs_insert_volume_into_cell() 45 rb_link_node_rcu(&volume->cell_node, parent, pp); in afs_insert_volume_into_cell() 46 rb_insert_color(&volume->cell_node, &cell->volumes); in afs_insert_volume_into_cell() 47 hlist_add_head_rcu(&volume->proc_link, &cell->proc_volumes); in afs_insert_volume_into_cell() 51 return volume; in afs_insert_volume_into_cell() [all …]
|
D | callback.c | 81 vnode->cb_v_break = vnode->volume->cb_v_break; in __afs_break_callback() 111 struct afs_volume *volume = NULL; in afs_lookup_volume_rcu() local 125 volume = rb_entry(p, struct afs_volume, cell_node); in afs_lookup_volume_rcu() 127 if (volume->vid < vid) in afs_lookup_volume_rcu() 129 else if (volume->vid > vid) in afs_lookup_volume_rcu() 133 volume = NULL; in afs_lookup_volume_rcu() 139 return volume; in afs_lookup_volume_rcu() 148 static void afs_break_one_callback(struct afs_volume *volume, in afs_break_one_callback() argument 157 write_lock(&volume->cb_v_break_lock); in afs_break_one_callback() 158 volume->cb_v_break++; in afs_break_one_callback() [all …]
|
D | rotate.c | 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() [all …]
|
D | super.c | 159 struct afs_volume *volume = as->volume; in afs_show_devname() local 169 switch (volume->type) { in afs_show_devname() 174 if (volume->type_force) in afs_show_devname() 183 seq_printf(m, "%c%s:%s%s", pref, cell->name, volume->name, suf); in afs_show_devname() 359 struct afs_volume *volume; in afs_validate_fc() local 383 if (ctx->volume) { in afs_validate_fc() 384 afs_put_volume(ctx->net, ctx->volume, in afs_validate_fc() 386 ctx->volume = NULL; in afs_validate_fc() 405 volume = afs_create_volume(ctx); in afs_validate_fc() 406 if (IS_ERR(volume)) in afs_validate_fc() [all …]
|
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() 190 struct afs_volume *volume, *pvol = NULL; in afs_query_for_alias_one() local 206 volume = afs_sample_volume(cell, key, pvol->name, pvol->name_len); in afs_query_for_alias_one() 207 if (IS_ERR(volume)) { in afs_query_for_alias_one() 209 if (PTR_ERR(volume) != -ENOMEDIUM) in afs_query_for_alias_one() 210 return PTR_ERR(volume); in afs_query_for_alias_one() 219 if (pvol->vid == volume->vid) { in afs_query_for_alias_one() [all …]
|
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 = volume->cb_v_break; in afs_alloc_operation() 150 op->cb_v_break = op->volume->cb_v_break; in afs_begin_vnode_operation() 248 afs_put_volume(op->net, op->volume, afs_volume_trace_put_put_op); in afs_put_operation()
|
D | inode.c | 358 vnode->volume->name, in afs_fetch_status() 362 op = afs_alloc_operation(key, vnode->volume); in afs_fetch_status() 411 vnode->volume = as->volume; in afs_iget5_set() 448 vnode->volume->cache, in afs_get_inode_cache() 511 vnode->volume = as->volume; in afs_iget5_set_root() 512 vnode->fid.vid = as->volume->vid, in afs_iget5_set_root() 532 _enter(",{%llx},,", as->volume->vid); in afs_root_iget() 540 _debug("GOT ROOT INODE %p { vl=%llx }", inode, as->volume->vid); in afs_root_iget() 545 vnode->cb_v_break = as->volume->cb_v_break, in afs_root_iget() 548 op = afs_alloc_operation(key, as->volume); in afs_root_iget() [all …]
|
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()
|
D | file.c | 135 key = afs_request_key(vnode->volume->cell); in afs_open() 291 vnode->volume->name, in afs_fetch_data() 297 op = afs_alloc_operation(req->key, vnode->volume); in afs_fetch_data() 516 down_write(&vnode->volume->cell->fs_open_mmaps_lock); in afs_add_open_mmap() 520 &vnode->volume->cell->fs_open_mmaps); in afs_add_open_mmap() 522 up_write(&vnode->volume->cell->fs_open_mmaps_lock); in afs_add_open_mmap() 531 down_write(&vnode->volume->cell->fs_open_mmaps_lock); in afs_drop_open_mmap() 536 up_write(&vnode->volume->cell->fs_open_mmaps_lock); in afs_drop_open_mmap()
|
D | dynroot.c | 34 vnode->volume = as->volume; in afs_iget5_pseudo_set() 54 if (as->volume) in afs_iget_pseudo_dir() 55 fid.vid = as->volume->vid; in afs_iget_pseudo_dir()
|
/fs/cachefiles/ |
D | volume.c | 19 struct cachefiles_volume *volume; in cachefiles_acquire_volume() local 30 volume = kzalloc(sizeof(struct cachefiles_volume), GFP_KERNEL); in cachefiles_acquire_volume() 31 if (!volume) in cachefiles_acquire_volume() 33 volume->vcookie = vcookie; in cachefiles_acquire_volume() 34 volume->cache = cache; in cachefiles_acquire_volume() 35 INIT_LIST_HEAD(&volume->cache_link); in cachefiles_acquire_volume() 51 volume->dentry = vdentry; in cachefiles_acquire_volume() 54 if (!cachefiles_set_volume_xattr(volume)) in cachefiles_acquire_volume() 57 ret = cachefiles_check_volume_xattr(volume); in cachefiles_acquire_volume() 64 cachefiles_put_directory(volume->dentry); in cachefiles_acquire_volume() [all …]
|
D | xattr.c | 177 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_prepare_to_write() 191 bool cachefiles_set_volume_xattr(struct cachefiles_volume *volume) in cachefiles_set_volume_xattr() argument 194 unsigned int len = volume->vcookie->coherency_len; in cachefiles_set_volume_xattr() 195 const void *p = volume->vcookie->coherency; in cachefiles_set_volume_xattr() 196 struct dentry *dentry = volume->dentry; in cachefiles_set_volume_xattr() 199 _enter("%x,#%d", volume->vcookie->debug_id, len); in cachefiles_set_volume_xattr() 206 memcpy(buf->data, p, volume->vcookie->coherency_len); in cachefiles_set_volume_xattr() 215 trace_cachefiles_vol_coherency(volume, d_inode(dentry)->i_ino, in cachefiles_set_volume_xattr() 219 volume->cache, "Failed to set xattr with error %d", ret); in cachefiles_set_volume_xattr() 221 trace_cachefiles_vol_coherency(volume, d_inode(dentry)->i_ino, in cachefiles_set_volume_xattr() [all …]
|
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 38 object->volume = volume; in cachefiles_alloc_object() 92 cache = object->volume->cache->cache; in cachefiles_put_object() 175 struct cachefiles_cache *cache = cookie->volume->cache->cache_priv; in cachefiles_lookup_cookie() 230 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_shorten_object() 277 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_resize_cookie() 352 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_withdraw_cookie() 418 struct cachefiles_volume *volume = object->volume; in cachefiles_invalidate_cookie() local 419 struct dentry *fan = volume->fanout[(u8)cookie->key_hash]; in cachefiles_invalidate_cookie() [all …]
|
D | namei.c | 69 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_unmark_inode_in_use() 417 struct cachefiles_volume *volume = object->volume; in cachefiles_delete_object() local 419 struct dentry *fan = volume->fanout[(u8)object->cookie->key_hash]; in cachefiles_delete_object() 428 ret = cachefiles_unlink(volume->cache, object, fan, dentry, why); in cachefiles_delete_object() 440 struct cachefiles_volume *volume = object->volume; in cachefiles_create_tmpfile() local 441 struct cachefiles_cache *cache = volume->cache; in cachefiles_create_tmpfile() 443 struct dentry *fan = volume->fanout[(u8)object->cookie->key_hash]; in cachefiles_create_tmpfile() 521 ret = cachefiles_has_space(object->volume->cache, 1, 0, in cachefiles_create_file() 544 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_open_file() 622 struct cachefiles_volume *volume = object->volume; in cachefiles_look_up_object() local [all …]
|
D | ondemand.c | 11 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_fd_release() 44 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_fd_write_iter() 84 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_fd_ioctl() 195 cache = object->volume->cache; in cachefiles_ondemand_get_fd() 315 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_send_req() 400 struct fscache_volume *volume = object->volume->vcookie; in cachefiles_ondemand_init_open_req() local 409 volume_key_size = volume->key[0] + 1; in cachefiles_ondemand_init_open_req() 410 volume_key = volume->key + 1; in cachefiles_ondemand_init_open_req() 479 struct fscache_volume *volume = object->volume->vcookie; in cachefiles_ondemand_init_object() local 491 volume_key_size = volume->key[0] + 1; in cachefiles_ondemand_init_object()
|
D | internal.h | 52 struct cachefiles_volume *volume; /* Cache volume that holds this object */ member 345 void cachefiles_acquire_volume(struct fscache_volume *volume); 346 void cachefiles_free_volume(struct fscache_volume *volume); 347 void cachefiles_withdraw_volume(struct cachefiles_volume *volume); 359 extern bool cachefiles_set_volume_xattr(struct cachefiles_volume *volume); 360 extern int cachefiles_check_volume_xattr(struct cachefiles_volume *volume); 376 ___cache = (object)->volume->cache; \
|
D | cache.c | 322 struct cachefiles_volume *volume = NULL; in cachefiles_withdraw_volumes() local 326 volume = list_first_entry(&cache->volumes, in cachefiles_withdraw_volumes() 328 list_del_init(&volume->cache_link); in cachefiles_withdraw_volumes() 331 if (!volume) in cachefiles_withdraw_volumes() 334 cachefiles_withdraw_volume(volume); in cachefiles_withdraw_volumes()
|
D | io.c | 213 granularity = max_t(size_t, object->volume->cache->bsize, granularity); in cachefiles_query_occupancy() 270 atomic_long_sub(ki->b_writing, &object->volume->cache->b_writing); in cachefiles_write_complete() 295 cache = object->volume->cache; in __cachefiles_write() 435 cache = object->volume->cache; in cachefiles_prepare_read() 512 struct cachefiles_cache *cache = object->volume->cache; in __cachefiles_prepare_write() 587 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_prepare_write()
|
/fs/erofs/ |
D | fscache.c | 399 fscache_relinquish_volume(domain->volume, NULL, false); in erofs_fscache_domain_put() 412 struct fscache_volume *volume; in erofs_fscache_register_volume() local 421 volume = fscache_acquire_volume(name, NULL, NULL, 0); in erofs_fscache_register_volume() 422 if (IS_ERR_OR_NULL(volume)) { in erofs_fscache_register_volume() 424 ret = volume ? PTR_ERR(volume) : -EOPNOTSUPP; in erofs_fscache_register_volume() 425 volume = NULL; in erofs_fscache_register_volume() 428 sbi->volume = volume; in erofs_fscache_register_volume() 461 domain->volume = sbi->volume; in erofs_fscache_init_domain() 482 sbi->volume = domain->volume; in erofs_fscache_register_domain() 498 struct fscache_volume *volume = EROFS_SB(sb)->volume; in erofs_fscache_acquire_cookie() local [all …]
|
/fs/ntfs3/ |
D | super.c | 388 if (ro_rw && (sbi->volume.flags & VOLUME_FLAG_DIRTY) && in ntfs_fs_reconfigure() 461 if (sbi->volume.ni) in put_ntfs() 462 iput(&sbi->volume.ni->vfs_inode); in put_ntfs() 503 buf->f_fsid.val[0] = sbi->volume.ser_num; in ntfs_statfs() 504 buf->f_fsid.val[1] = (sbi->volume.ser_num >> 32); in ntfs_statfs() 694 sbi->volume.blocks = dev_size >> PAGE_SHIFT; in ntfs_init_from_boot() 748 sbi->volume.size = sectors * boot_sector_size; in ntfs_init_from_boot() 750 gb = format_size_gb(sbi->volume.size + boot_sector_size, &mb); in ntfs_init_from_boot() 807 sbi->volume.ser_num = le64_to_cpu(boot->serial_num); in ntfs_init_from_boot() 810 if (dev_size < sbi->volume.size + boot_sector_size) { in ntfs_init_from_boot() [all …]
|
/fs/affs/ |
D | super.c | 191 int *blocksize, char **prefix, char *volume, unsigned long *mount_opts) in parse_options() argument 203 volume[0] = ':'; in parse_options() 204 volume[1] = 0; in parse_options() 279 strscpy(volume, vol, 32); in parse_options() 564 char volume[32]; in affs_remount() local 572 memcpy(volume, sbi->s_volume, 32); in affs_remount() 574 &blocksize, &prefix, volume, in affs_remount() 592 memcpy(sbi->s_volume, volume, 32); in affs_remount()
|