/linux-4.19.296/fs/afs/ |
D | flock.c | 20 static void afs_next_locker(struct afs_vnode *vnode, int error); 29 static inline void afs_set_lock_state(struct afs_vnode *vnode, enum afs_lock_state state) in afs_set_lock_state() argument 31 _debug("STATE %u -> %u", vnode->lock_state, state); in afs_set_lock_state() 32 vnode->lock_state = state; in afs_set_lock_state() 38 void afs_lock_may_be_available(struct afs_vnode *vnode) in afs_lock_may_be_available() argument 40 _enter("{%x:%u}", vnode->fid.vid, vnode->fid.vnode); in afs_lock_may_be_available() 42 spin_lock(&vnode->lock); in afs_lock_may_be_available() 43 if (vnode->lock_state == AFS_VNODE_LOCK_WAITING_FOR_CB) in afs_lock_may_be_available() 44 afs_next_locker(vnode, 0); in afs_lock_may_be_available() 45 spin_unlock(&vnode->lock); in afs_lock_may_be_available() [all …]
|
D | inode.c | 35 static int afs_inode_init_from_status(struct afs_vnode *vnode, struct key *key) in afs_inode_init_from_status() argument 37 struct inode *inode = AFS_VNODE_TO_I(vnode); in afs_inode_init_from_status() 40 vnode->status.type, in afs_inode_init_from_status() 41 vnode->status.nlink, in afs_inode_init_from_status() 42 (unsigned long long) vnode->status.size, in afs_inode_init_from_status() 43 vnode->status.data_version, in afs_inode_init_from_status() 44 vnode->status.mode); in afs_inode_init_from_status() 46 read_seqlock_excl(&vnode->cb_lock); in afs_inode_init_from_status() 48 afs_update_inode_from_status(vnode, &vnode->status, NULL, in afs_inode_init_from_status() 51 switch (vnode->status.type) { in afs_inode_init_from_status() [all …]
|
D | fsclient.c | 42 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid() 70 void afs_update_inode_from_status(struct afs_vnode *vnode, in afs_update_inode_from_status() argument 80 vnode->vfs_inode.i_ctime = t; in afs_update_inode_from_status() 81 vnode->vfs_inode.i_mtime = t; in afs_update_inode_from_status() 82 vnode->vfs_inode.i_atime = t; in afs_update_inode_from_status() 85 vnode->vfs_inode.i_uid = make_kuid(&init_user_ns, status->owner); in afs_update_inode_from_status() 86 vnode->vfs_inode.i_gid = make_kgid(&init_user_ns, status->group); in afs_update_inode_from_status() 87 set_nlink(&vnode->vfs_inode, status->nlink); in afs_update_inode_from_status() 89 mode = vnode->vfs_inode.i_mode; in afs_update_inode_from_status() 93 vnode->vfs_inode.i_mode = mode; in afs_update_inode_from_status() [all …]
|
D | callback.c | 27 struct afs_vnode *vnode) in afs_create_interest() argument 44 new_vi->vid = vnode->volume->vid; in afs_create_interest() 49 new->sb = vnode->vfs_inode.i_sb; in afs_create_interest() 50 new->vid = vnode->volume->vid; in afs_create_interest() 88 int afs_register_server_cb_interest(struct afs_vnode *vnode, in afs_register_server_cb_interest() argument 97 if (vnode->cb_interest && in afs_register_server_cb_interest() 98 likely(vnode->cb_interest == entry->cb_interest)) in afs_register_server_cb_interest() 105 vcbi = vnode->cb_interest; in afs_register_server_cb_interest() 108 afs_put_cb_interest(afs_v2net(vnode), cbi); in afs_register_server_cb_interest() 116 write_seqlock(&vnode->cb_lock); in afs_register_server_cb_interest() [all …]
|
D | write.c | 32 static int afs_fill_page(struct afs_vnode *vnode, struct key *key, in afs_fill_page() argument 53 ret = afs_fetch_data(vnode, key, req); in afs_fill_page() 59 set_bit(AFS_VNODE_DELETED, &vnode->flags); in afs_fill_page() 75 struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); in afs_write_begin() local 85 vnode->fid.vid, vnode->fid.vnode, index, from, to); in afs_write_begin() 97 ret = afs_fill_page(vnode, key, pos & PAGE_MASK, PAGE_SIZE, page); in afs_write_begin() 124 trace_afs_page_dirty(vnode, tracepoint_string("alrdy"), in afs_write_begin() 132 if (!test_bit(AFS_VNODE_NEW_CONTENT, &vnode->flags) && in afs_write_begin() 146 trace_afs_page_dirty(vnode, tracepoint_string("begin"), in afs_write_begin() 179 struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); in afs_write_end() local [all …]
|
D | rotate.c | 24 static void afs_init_fs_cursor(struct afs_fs_cursor *fc, struct afs_vnode *vnode) in afs_init_fs_cursor() argument 35 bool afs_begin_vnode_operation(struct afs_fs_cursor *fc, struct afs_vnode *vnode, in afs_begin_vnode_operation() argument 38 afs_init_fs_cursor(fc, vnode); in afs_begin_vnode_operation() 39 fc->vnode = vnode; in afs_begin_vnode_operation() 43 if (mutex_lock_interruptible(&vnode->io_lock) < 0) { in afs_begin_vnode_operation() 49 if (vnode->lock_state != AFS_VNODE_LOCK_NONE) in afs_begin_vnode_operation() 59 struct afs_vnode *vnode) in afs_start_fs_iteration() argument 64 read_lock(&vnode->volume->servers_lock); in afs_start_fs_iteration() 65 fc->server_list = afs_get_serverlist(vnode->volume->servers); in afs_start_fs_iteration() 66 read_unlock(&vnode->volume->servers_lock); in afs_start_fs_iteration() [all …]
|
D | security.c | 82 void afs_clear_permits(struct afs_vnode *vnode) in afs_clear_permits() argument 86 spin_lock(&vnode->lock); in afs_clear_permits() 87 permits = rcu_dereference_protected(vnode->permit_cache, in afs_clear_permits() 88 lockdep_is_held(&vnode->lock)); in afs_clear_permits() 89 RCU_INIT_POINTER(vnode->permit_cache, NULL); in afs_clear_permits() 90 spin_unlock(&vnode->lock); in afs_clear_permits() 118 void afs_cache_permit(struct afs_vnode *vnode, struct key *key, in afs_cache_permit() argument 122 afs_access_t caller_access = READ_ONCE(vnode->status.caller_access); in afs_cache_permit() 128 vnode->fid.vid, vnode->fid.vnode, key_serial(key), caller_access); in afs_cache_permit() 135 permits = rcu_dereference(vnode->permit_cache); in afs_cache_permit() [all …]
|
D | file.c | 84 int afs_cache_wb_key(struct afs_vnode *vnode, struct afs_file *af) in afs_cache_wb_key() argument 94 spin_lock(&vnode->wb_lock); in afs_cache_wb_key() 95 list_for_each_entry(p, &vnode->wb_keys, vnode_link) { in afs_cache_wb_key() 101 list_add_tail(&wbk->vnode_link, &vnode->wb_keys); in afs_cache_wb_key() 102 spin_unlock(&vnode->wb_lock); in afs_cache_wb_key() 108 spin_unlock(&vnode->wb_lock); in afs_cache_wb_key() 119 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_open() local 124 _enter("{%x:%u},", vnode->fid.vid, vnode->fid.vnode); in afs_open() 126 key = afs_request_key(vnode->volume->cell); in afs_open() 139 ret = afs_validate(vnode, key); in afs_open() [all …]
|
D | dir_edit.c | 190 void afs_edit_dir_add(struct afs_vnode *vnode, in afs_edit_dir_add() argument 206 i_size = i_size_read(&vnode->vfs_inode); in afs_edit_dir_add() 209 clear_bit(AFS_VNODE_DIR_VALID, &vnode->flags); in afs_edit_dir_add() 213 gfp = vnode->vfs_inode.i_mapping->gfp_mask; in afs_edit_dir_add() 214 page0 = find_or_create_page(vnode->vfs_inode.i_mapping, 0, gfp); in afs_edit_dir_add() 216 clear_bit(AFS_VNODE_DIR_VALID, &vnode->flags); in afs_edit_dir_add() 245 gfp = vnode->vfs_inode.i_mapping->gfp_mask; in afs_edit_dir_add() 246 page = find_or_create_page(vnode->vfs_inode.i_mapping, in afs_edit_dir_add() 258 if (!test_bit(AFS_VNODE_DIR_VALID, &vnode->flags)) in afs_edit_dir_add() 273 i_size_write(&vnode->vfs_inode, (b + 1) * AFS_DIR_BLOCK_SIZE); in afs_edit_dir_add() [all …]
|
D | super.c | 413 fid.vnode = 1; in afs_fill_super() 605 struct afs_vnode *vnode = _vnode; in afs_i_init_once() local 607 memset(vnode, 0, sizeof(*vnode)); in afs_i_init_once() 608 inode_init_once(&vnode->vfs_inode); in afs_i_init_once() 609 mutex_init(&vnode->io_lock); in afs_i_init_once() 610 init_rwsem(&vnode->validate_lock); in afs_i_init_once() 611 spin_lock_init(&vnode->wb_lock); in afs_i_init_once() 612 spin_lock_init(&vnode->lock); in afs_i_init_once() 613 INIT_LIST_HEAD(&vnode->wb_keys); in afs_i_init_once() 614 INIT_LIST_HEAD(&vnode->pending_locks); in afs_i_init_once() [all …]
|
D | dir.c | 394 ntohl(dire->u.vnode), in afs_dir_iterate_block() 515 cookie->fid.vnode = ino; in afs_lookup_one_filldir() 554 _leave(" = 0 { vn=%u u=%u }", fid->vnode, fid->unique); in afs_do_lookup_one() 580 cookie->fids[cookie->nr_fids].vnode = ino; in afs_lookup_filldir() 586 cookie->fids[0].vnode = ino; in afs_lookup_filldir() 649 inode = ilookup5(dir->i_sb, cookie->fids[0].vnode, afs_iget5_test, &data); in afs_do_lookup() 833 dvnode->fid.vid, dvnode->fid.vnode, dentry, dentry); in afs_lookup() 889 struct afs_vnode *vnode, *dir; in afs_d_revalidate() local 901 vnode = AFS_FS_I(d_inode(dentry)); in afs_d_revalidate() 903 vnode->fid.vid, vnode->fid.vnode, dentry, in afs_d_revalidate() [all …]
|
D | xattr.c | 44 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_xattr_get_cell() local 45 struct afs_cell *cell = vnode->volume->cell; in afs_xattr_get_cell() 71 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_xattr_get_fid() local 76 vnode->fid.vid, vnode->fid.vnode, vnode->fid.unique); in afs_xattr_get_fid() 98 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_xattr_get_volume() local 99 const char *volname = vnode->volume->name; in afs_xattr_get_volume()
|
D | cache.c | 49 struct afs_vnode *vnode = cookie_netfs_data; in afs_vnode_cache_check_aux() local 53 vnode->fid.vnode, vnode->fid.unique, vnode->status.data_version, in afs_vnode_cache_check_aux() 64 if (vnode->status.data_version != aux.data_version) { in afs_vnode_cache_check_aux() 66 aux.data_version, vnode->status.data_version); in afs_vnode_cache_check_aux()
|
D | internal.h | 601 struct afs_vnode *vnode; member 684 static inline unsigned int afs_calc_vnode_cb_break(struct afs_vnode *vnode) in afs_calc_vnode_cb_break() argument 686 return vnode->cb_break + vnode->cb_s_break + vnode->cb_v_break; in afs_calc_vnode_cb_break() 689 static inline unsigned int afs_cb_break_sum(struct afs_vnode *vnode, in afs_cb_break_sum() argument 692 return vnode->cb_break + cbi->server->cb_s_break + vnode->volume->cb_v_break; in afs_cb_break_sum() 850 static inline struct afs_net *afs_v2net(struct afs_vnode *vnode) in afs_v2net() argument 852 return afs_i2net(&vnode->vfs_inode); in afs_v2net() 865 #define afs_stat_v(vnode, n) __afs_stat(&afs_v2net(vnode)->n) argument 1099 static inline struct inode *AFS_VNODE_TO_I(struct afs_vnode *vnode) in AFS_VNODE_TO_I() argument 1101 return &vnode->vfs_inode; in AFS_VNODE_TO_I() [all …]
|
D | dynroot.c | 61 struct afs_vnode *vnode = AFS_FS_I(dir); in afs_try_auto_mntpt() local 66 dentry, dentry, vnode->fid.vid, vnode->fid.vnode); in afs_try_auto_mntpt() 68 if (!test_bit(AFS_VNODE_AUTOCELL, &vnode->flags)) in afs_try_auto_mntpt()
|
D | mntpt.c | 77 struct afs_vnode *vnode; in afs_mntpt_do_automount() local 96 vnode = AFS_FS_I(d_inode(mntpt)); in afs_mntpt_do_automount() 97 if (test_bit(AFS_VNODE_PSEUDODIR, &vnode->flags)) { in afs_mntpt_do_automount()
|
D | xdr_fs.h | 59 __be32 vnode; member
|
D | afs.h | 55 afs_vnodeid_t vnode; /* file index within volume */ member
|
D | server.c | 538 afs_fs_get_capabilities(afs_v2net(fc->vnode), fc->cbi->server, in afs_do_probe_fileserver() 624 alist = afs_vl_lookup_addrs(fc->vnode->volume->cell, fc->key, in afs_update_server_record()
|
D | cmservice.c | 219 cb->fid.vnode = ntohl(*bp++); in afs_deliver_cb_callback()
|
/linux-4.19.296/include/trace/events/ |
D | afs.h | 299 __entry->fid.vnode = 0; 307 __entry->fid.vnode, 420 TP_PROTO(struct afs_vnode *vnode, loff_t off, loff_t i_size), 422 TP_ARGS(vnode, off, i_size), 425 __field(struct afs_vnode *, vnode ) 431 __entry->vnode = vnode; 437 __entry->vnode, __entry->off, __entry->i_size) 454 TP_PROTO(struct afs_vnode *vnode, const char *where, 457 TP_ARGS(vnode, where, page, priv), 460 __field(struct afs_vnode *, vnode ) [all …]
|