/kernel/linux/linux-5.10/fs/afs/ |
H A D | inode.c | 32 static noinline void dump_vnode(struct afs_vnode *vnode, struct afs_vnode *parent_vnode) in dump_vnode() argument 36 pr_warn("kAFS: AFS vnode with undefined type %u\n", vnode->status.type); in dump_vnode() 38 vnode->status.abort_code, in dump_vnode() 39 vnode->status.mode, in dump_vnode() 40 vnode->status.size, in dump_vnode() 41 vnode->status.data_version); in dump_vnode() 42 pr_warn("kAFS: vnode %llx:%llx:%x\n", in dump_vnode() 43 vnode->fid.vid, in dump_vnode() 44 vnode in dump_vnode() 59 afs_inode_init_from_status(struct afs_operation *op, struct afs_vnode_param *vp, struct afs_vnode *vnode) afs_inode_init_from_status() argument 156 struct afs_vnode *vnode = vp->vnode; afs_apply_status() local 255 struct afs_vnode *vnode = vp->vnode; afs_apply_callback() local 270 struct afs_vnode *vnode = vp->vnode; afs_vnode_commit_status() local 316 struct afs_vnode *vnode = vp->vnode; afs_fetch_status_success() local 339 afs_fetch_status(struct afs_vnode *vnode, struct key *key, bool is_new, afs_access_t *_caller_access) afs_fetch_status() argument 370 struct afs_vnode *vnode = AFS_FS_I(inode); afs_ilookup5_test_by_fid() local 396 struct afs_vnode *vnode = AFS_FS_I(inode); afs_iget5_set() local 412 afs_get_inode_cache(struct afs_vnode *vnode) afs_get_inode_cache() argument 448 struct afs_vnode *vnode; afs_iget() local 493 struct afs_vnode *vnode = AFS_FS_I(inode); afs_iget5_set_root() local 512 struct afs_vnode *vnode; afs_root_iget() local 562 afs_zap_data(struct afs_vnode *vnode) afs_zap_data() argument 582 afs_get_s_break_rcu(struct afs_vnode *vnode, unsigned int *_s_break) afs_get_s_break_rcu() argument 602 afs_check_validity(struct afs_vnode *vnode) afs_check_validity() argument 666 afs_validate(struct afs_vnode *vnode, struct key *key) afs_validate() argument 732 struct afs_vnode *vnode = AFS_FS_I(inode); afs_getattr() local 780 struct afs_vnode *vnode; afs_evict_inode() local 867 struct afs_vnode *vnode = AFS_FS_I(d_inode(dentry)); afs_setattr() local [all...] |
H A D | flock.c | 16 static void afs_next_locker(struct afs_vnode *vnode, int error); 25 static inline void afs_set_lock_state(struct afs_vnode *vnode, enum afs_lock_state state) in afs_set_lock_state() argument 27 _debug("STATE %u -> %u", vnode->lock_state, state); in afs_set_lock_state() 28 vnode->lock_state = state; in afs_set_lock_state() 34 * if the callback is broken on this vnode, then the lock may now be available 36 void afs_lock_may_be_available(struct afs_vnode *vnode) in afs_lock_may_be_available() argument 38 _enter("{%llx:%llu}", vnode->fid.vid, vnode->fid.vnode); in afs_lock_may_be_available() 40 spin_lock(&vnode in afs_lock_may_be_available() 51 afs_schedule_lock_extension(struct afs_vnode *vnode) afs_schedule_lock_extension() argument 74 struct afs_vnode *vnode = op->file[0].vnode; afs_lock_op_done() local 90 afs_grant_locks(struct afs_vnode *vnode) afs_grant_locks() argument 111 afs_next_locker(struct afs_vnode *vnode, int error) afs_next_locker() argument 158 afs_kill_lockers_enoent(struct afs_vnode *vnode) afs_kill_lockers_enoent() argument 192 afs_set_lock(struct afs_vnode *vnode, struct key *key, afs_lock_type_t type) afs_set_lock() argument 224 afs_extend_lock(struct afs_vnode *vnode, struct key *key) afs_extend_lock() argument 255 afs_release_lock(struct afs_vnode *vnode, struct key *key) afs_release_lock() argument 284 struct afs_vnode *vnode = afs_lock_work() local 393 afs_defer_unlock(struct afs_vnode *vnode) afs_defer_unlock() argument 412 afs_do_setlk_check(struct afs_vnode *vnode, struct key *key, enum afs_flock_mode mode, afs_lock_type_t type) afs_do_setlk_check() argument 455 struct afs_vnode *vnode = AFS_FS_I(inode); afs_do_setlk() local 704 struct afs_vnode *vnode = AFS_FS_I(locks_inode(file)); afs_do_unlk() local 724 struct afs_vnode *vnode = AFS_FS_I(locks_inode(file)); afs_do_getlk() local 766 struct afs_vnode *vnode = AFS_FS_I(locks_inode(file)); afs_lock() local 805 struct afs_vnode *vnode = AFS_FS_I(locks_inode(file)); afs_flock() local 850 struct afs_vnode *vnode = AFS_FS_I(locks_inode(fl->fl_file)); afs_fl_copy_lock() local 868 struct afs_vnode *vnode = AFS_FS_I(locks_inode(fl->fl_file)); afs_fl_release_private() local [all...] |
H A D | write.c | 28 static int afs_fill_page(struct afs_vnode *vnode, struct key *key, in afs_fill_page() argument 38 if (pos >= vnode->vfs_inode.i_size) { in afs_fill_page() 59 ret = afs_fetch_data(vnode, key, req); in afs_fill_page() 65 set_bit(AFS_VNODE_DELETED, &vnode->flags); in afs_fill_page() 81 struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); in afs_write_begin() local 91 vnode->fid.vid, vnode->fid.vnode, index, from, to); in afs_write_begin() 98 ret = afs_fill_page(vnode, key, pos & PAGE_MASK, PAGE_SIZE, page); in afs_write_begin() 122 trace_afs_page_dirty(vnode, tracepoint_strin in afs_write_begin() 166 struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); afs_write_end() local 241 struct afs_vnode *vnode = AFS_FS_I(mapping->host); afs_kill_pages() local 284 struct afs_vnode *vnode = AFS_FS_I(mapping->host); afs_redirty_pages() local 320 afs_pages_written_back(struct afs_vnode *vnode, pgoff_t first, pgoff_t last) afs_pages_written_back() argument 361 afs_get_writeback_key(struct afs_vnode *vnode, struct afs_wb_key **_wbk) afs_get_writeback_key() argument 399 struct afs_vnode *vnode = op->file[0].vnode; afs_store_data_success() local 426 struct afs_vnode *vnode = AFS_FS_I(mapping->host); afs_store_data() local 499 struct afs_vnode *vnode = AFS_FS_I(mapping->host); afs_write_back_from_locked_page() local 749 struct afs_vnode *vnode = AFS_FS_I(mapping->host); afs_writepages() local 793 struct afs_vnode *vnode = AFS_FS_I(file_inode(iocb->ki_filp)); afs_file_write() local 823 struct afs_vnode *vnode = AFS_FS_I(inode); afs_fsync() local 840 struct afs_vnode *vnode = AFS_FS_I(inode); afs_page_mkwrite() local 885 afs_prune_wb_keys(struct afs_vnode *vnode) afs_prune_wb_keys() argument 916 struct afs_vnode *vnode = AFS_FS_I(mapping->host); afs_launder_page() local [all...] |
H A D | file.c | 81 int afs_cache_wb_key(struct afs_vnode *vnode, struct afs_file *af) in afs_cache_wb_key() argument 91 spin_lock(&vnode->wb_lock); in afs_cache_wb_key() 92 list_for_each_entry(p, &vnode->wb_keys, vnode_link) { in afs_cache_wb_key() 98 list_add_tail(&wbk->vnode_link, &vnode->wb_keys); in afs_cache_wb_key() 99 spin_unlock(&vnode->wb_lock); in afs_cache_wb_key() 105 spin_unlock(&vnode->wb_lock); in afs_cache_wb_key() 116 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_open() local 121 _enter("{%llx:%llu},", vnode->fid.vid, vnode->fid.vnode); in afs_open() 167 struct afs_vnode *vnode = AFS_FS_I(inode); afs_release() local 225 struct afs_vnode *vnode = op->file[0].vnode; afs_fetch_data_success() local 249 afs_fetch_data(struct afs_vnode *vnode, struct key *key, struct afs_read *req) afs_fetch_data() argument 277 struct afs_vnode *vnode = AFS_FS_I(inode); afs_page_filler() local 419 struct afs_vnode *vnode = req->vnode; afs_readpages_page_done() local 445 struct afs_vnode *vnode = AFS_FS_I(mapping->host); afs_readpages_one() local 547 struct afs_vnode *vnode; afs_readpages() local 610 struct afs_vnode *vnode = AFS_FS_I(page->mapping->host); afs_invalidate_dirty() local 676 struct afs_vnode *vnode = AFS_FS_I(page->mapping->host); afs_invalidatepage() local 695 struct afs_vnode *vnode = AFS_FS_I(page->mapping->host); afs_releasepage() local [all...] |
H A D | callback.c | 40 void __afs_break_callback(struct afs_vnode *vnode, enum afs_cb_break_reason reason) in __afs_break_callback() argument 44 clear_bit(AFS_VNODE_NEW_CONTENT, &vnode->flags); in __afs_break_callback() 45 if (test_and_clear_bit(AFS_VNODE_CB_PROMISED, &vnode->flags)) { in __afs_break_callback() 46 vnode->cb_break++; in __afs_break_callback() 47 afs_clear_permits(vnode); in __afs_break_callback() 49 if (vnode->lock_state == AFS_VNODE_LOCK_WAITING_FOR_CB) in __afs_break_callback() 50 afs_lock_may_be_available(vnode); in __afs_break_callback() 52 trace_afs_cb_break(&vnode->fid, vnode->cb_break, reason, true); in __afs_break_callback() 54 trace_afs_cb_break(&vnode in __afs_break_callback() 58 afs_break_callback(struct afs_vnode *vnode, enum afs_cb_break_reason reason) afs_break_callback() argument 112 struct afs_vnode *vnode; afs_break_one_callback() local [all...] |
H A D | security.c | 107 void afs_clear_permits(struct afs_vnode *vnode) in afs_clear_permits() argument 111 spin_lock(&vnode->lock); in afs_clear_permits() 112 permits = rcu_dereference_protected(vnode->permit_cache, in afs_clear_permits() 113 lockdep_is_held(&vnode->lock)); in afs_clear_permits() 114 RCU_INIT_POINTER(vnode->permit_cache, NULL); in afs_clear_permits() 115 spin_unlock(&vnode->lock); in afs_clear_permits() 139 * that returned a vnode status for a particular key. If a callback break 143 void afs_cache_permit(struct afs_vnode *vnode, struct key *key, in afs_cache_permit() argument 153 vnode->fid.vid, vnode in afs_cache_permit() 304 afs_check_permit_rcu(struct afs_vnode *vnode, struct key *key, afs_access_t *_access) afs_check_permit_rcu() argument 343 afs_check_permit(struct afs_vnode *vnode, struct key *key, afs_access_t *_access) afs_check_permit() argument 401 struct afs_vnode *vnode = AFS_FS_I(inode); afs_permission() local [all...] |
H A D | fs_operation.c | 51 * Lock the vnode(s) being operated upon. 55 struct afs_vnode *vnode = op->file[0].vnode; in afs_get_io_locks() local 56 struct afs_vnode *vnode2 = op->file[1].vnode; in afs_get_io_locks() 61 mutex_lock(&vnode->io_lock); in afs_get_io_locks() 67 if (!vnode2 || !op->file[1].need_io_lock || vnode == vnode2) in afs_get_io_locks() 70 if (vnode2 > vnode) in afs_get_io_locks() 71 swap(vnode, vnode2); in afs_get_io_locks() 73 if (mutex_lock_interruptible(&vnode->io_lock) < 0) { in afs_get_io_locks() 85 mutex_unlock(&vnode in afs_get_io_locks() 99 struct afs_vnode *vnode = op->file[0].vnode; afs_drop_io_locks() local 113 struct afs_vnode *vnode = vp->vnode; afs_prepare_vnode() local 138 struct afs_vnode *vnode = op->file[0].vnode; afs_begin_vnode_operation() local [all...] |
H A D | dir_edit.c | 186 void afs_edit_dir_add(struct afs_vnode *vnode, in afs_edit_dir_add() argument 202 i_size = i_size_read(&vnode->vfs_inode); in afs_edit_dir_add() 205 clear_bit(AFS_VNODE_DIR_VALID, &vnode->flags); in afs_edit_dir_add() 209 gfp = vnode->vfs_inode.i_mapping->gfp_mask; in afs_edit_dir_add() 210 page0 = find_or_create_page(vnode->vfs_inode.i_mapping, 0, gfp); in afs_edit_dir_add() 212 clear_bit(AFS_VNODE_DIR_VALID, &vnode->flags); in afs_edit_dir_add() 241 gfp = vnode->vfs_inode.i_mapping->gfp_mask; in afs_edit_dir_add() 242 page = find_or_create_page(vnode->vfs_inode.i_mapping, in afs_edit_dir_add() 252 if (!test_bit(AFS_VNODE_DIR_VALID, &vnode->flags)) in afs_edit_dir_add() 267 afs_set_i_size(vnode, ( in afs_edit_dir_add() 365 afs_edit_dir_remove(struct afs_vnode *vnode, struct qstr *name, enum afs_edit_dir_reason why) afs_edit_dir_remove() argument [all...] |
H A D | xattr.c | 42 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_xattr_get_acl() local 46 op = afs_alloc_operation(NULL, vnode->volume); in afs_xattr_get_acl() 50 afs_op_set_vnode(op, 0, vnode); in afs_xattr_get_acl() 105 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_xattr_set_acl() local 110 op = afs_alloc_operation(NULL, vnode->volume); in afs_xattr_set_acl() 114 afs_op_set_vnode(op, 0, vnode); in afs_xattr_set_acl() 143 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_xattr_get_yfs() local 168 op = afs_alloc_operation(NULL, vnode->volume); in afs_xattr_get_yfs() 172 afs_op_set_vnode(op, 0, vnode); in afs_xattr_get_yfs() 235 struct afs_vnode *vnode in afs_xattr_set_yfs() local 271 struct afs_vnode *vnode = AFS_FS_I(inode); afs_xattr_get_cell() local 298 struct afs_vnode *vnode = AFS_FS_I(inode); afs_xattr_get_fid() local 336 struct afs_vnode *vnode = AFS_FS_I(inode); afs_xattr_get_volume() local [all...] |
H A D | dir.c | 173 dvnode->fid.vid, dvnode->fid.vnode, in afs_dir_check_pages() 431 ntohl(dire->u.vnode), in afs_dir_iterate_block() 556 cookie->fid.vnode = ino; in afs_lookup_one_filldir() 596 _leave(" = 0 { vn=%llu u=%u }", fid->vnode, fid->unique); in afs_do_lookup_one() 622 cookie->fids[cookie->nr_fids].vnode = ino; in afs_lookup_filldir() 628 cookie->fids[1].vnode = ino; in afs_lookup_filldir() 647 struct afs_vnode *vnode; in afs_do_lookup_success() local 678 if (vp->vnode) { in afs_do_lookup_success() 679 if (!test_bit(AFS_VNODE_UNSET, &vp->vnode->flags)) in afs_do_lookup_success() 684 vnode in afs_do_lookup_success() 757 struct afs_vnode *dvnode = AFS_FS_I(dir), *vnode; afs_do_lookup() local 1053 struct afs_vnode *vnode, *dir; afs_d_revalidate() local 1220 struct afs_vnode *vnode = op->file[0].vnode; afs_check_for_remote_deletion() local 1235 struct afs_vnode *vnode; afs_vnode_new_inode() local 1335 struct afs_vnode *vnode = AFS_FS_I(d_inode(dentry)); afs_dir_remove_subdir() local 1390 struct afs_vnode *dvnode = AFS_FS_I(dir), *vnode = NULL; afs_rmdir() local 1442 struct afs_vnode *vnode = op->file[1].vnode; afs_dir_remove_link() local 1524 struct afs_vnode *vnode = AFS_FS_I(d_inode(dentry)); afs_unlink() local 1678 struct afs_vnode *vnode = AFS_FS_I(d_inode(from)); afs_link() local 1786 struct afs_vnode *vnode = AFS_FS_I(d_inode(op->dentry)); afs_rename_edit_dir() local 1869 struct afs_vnode *orig_dvnode, *new_dvnode, *vnode; afs_rename() local [all...] |
/kernel/linux/linux-6.6/fs/afs/ |
H A D | flock.c | 16 static void afs_next_locker(struct afs_vnode *vnode, int error); 25 static inline void afs_set_lock_state(struct afs_vnode *vnode, enum afs_lock_state state) in afs_set_lock_state() argument 27 _debug("STATE %u -> %u", vnode->lock_state, state); in afs_set_lock_state() 28 vnode->lock_state = state; in afs_set_lock_state() 34 * if the callback is broken on this vnode, then the lock may now be available 36 void afs_lock_may_be_available(struct afs_vnode *vnode) in afs_lock_may_be_available() argument 38 _enter("{%llx:%llu}", vnode->fid.vid, vnode->fid.vnode); in afs_lock_may_be_available() 40 spin_lock(&vnode in afs_lock_may_be_available() 51 afs_schedule_lock_extension(struct afs_vnode *vnode) afs_schedule_lock_extension() argument 74 struct afs_vnode *vnode = op->file[0].vnode; afs_lock_op_done() local 90 afs_grant_locks(struct afs_vnode *vnode) afs_grant_locks() argument 111 afs_next_locker(struct afs_vnode *vnode, int error) afs_next_locker() argument 158 afs_kill_lockers_enoent(struct afs_vnode *vnode) afs_kill_lockers_enoent() argument 192 afs_set_lock(struct afs_vnode *vnode, struct key *key, afs_lock_type_t type) afs_set_lock() argument 224 afs_extend_lock(struct afs_vnode *vnode, struct key *key) afs_extend_lock() argument 255 afs_release_lock(struct afs_vnode *vnode, struct key *key) afs_release_lock() argument 284 struct afs_vnode *vnode = afs_lock_work() local 393 afs_defer_unlock(struct afs_vnode *vnode) afs_defer_unlock() argument 412 afs_do_setlk_check(struct afs_vnode *vnode, struct key *key, enum afs_flock_mode mode, afs_lock_type_t type) afs_do_setlk_check() argument 455 struct afs_vnode *vnode = AFS_FS_I(inode); afs_do_setlk() local 704 struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); afs_do_unlk() local 724 struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); afs_do_getlk() local 766 struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); afs_lock() local 801 struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); afs_flock() local 846 struct afs_vnode *vnode = AFS_FS_I(file_inode(fl->fl_file)); afs_fl_copy_lock() local 864 struct afs_vnode *vnode = AFS_FS_I(file_inode(fl->fl_file)); afs_fl_release_private() local [all...] |
H A D | inode.c | 32 static noinline void dump_vnode(struct afs_vnode *vnode, struct afs_vnode *parent_vnode) in dump_vnode() argument 36 pr_warn("kAFS: AFS vnode with undefined type %u\n", vnode->status.type); in dump_vnode() 38 vnode->status.abort_code, in dump_vnode() 39 vnode->status.mode, in dump_vnode() 40 vnode->status.size, in dump_vnode() 41 vnode->status.data_version); in dump_vnode() 42 pr_warn("kAFS: vnode %llx:%llx:%x\n", in dump_vnode() 43 vnode->fid.vid, in dump_vnode() 44 vnode in dump_vnode() 59 afs_set_netfs_context(struct afs_vnode *vnode) afs_set_netfs_context() argument 67 afs_inode_init_from_status(struct afs_operation *op, struct afs_vnode_param *vp, struct afs_vnode *vnode) afs_inode_init_from_status() argument 167 struct afs_vnode *vnode = vp->vnode; afs_apply_status() local 268 struct afs_vnode *vnode = vp->vnode; afs_apply_callback() local 283 struct afs_vnode *vnode = vp->vnode; afs_vnode_commit_status() local 329 struct afs_vnode *vnode = vp->vnode; afs_fetch_status_success() local 352 afs_fetch_status(struct afs_vnode *vnode, struct key *key, bool is_new, afs_access_t *_caller_access) afs_fetch_status() argument 383 struct afs_vnode *vnode = AFS_FS_I(inode); afs_ilookup5_test_by_fid() local 409 struct afs_vnode *vnode = AFS_FS_I(inode); afs_iget5_set() local 425 afs_get_inode_cache(struct afs_vnode *vnode) afs_get_inode_cache() argument 464 struct afs_vnode *vnode; afs_iget() local 509 struct afs_vnode *vnode = AFS_FS_I(inode); afs_iget5_set_root() local 528 struct afs_vnode *vnode; afs_root_iget() local 579 afs_zap_data(struct afs_vnode *vnode) afs_zap_data() argument 598 afs_check_server_good(struct afs_vnode *vnode) afs_check_server_good() argument 627 afs_check_validity(struct afs_vnode *vnode) afs_check_validity() argument 674 afs_pagecache_valid(struct afs_vnode *vnode) afs_pagecache_valid() argument 698 afs_validate(struct afs_vnode *vnode, struct key *key) afs_validate() argument 756 struct afs_vnode *vnode = AFS_FS_I(inode); afs_getattr() local 812 struct afs_vnode *vnode = AFS_FS_I(inode); afs_evict_inode() local 899 struct afs_vnode *vnode = AFS_FS_I(d_inode(dentry)); afs_setattr() local [all...] |
H A D | callback.c | 31 struct afs_vnode *vnode = container_of(work, struct afs_vnode, cb_work); in afs_invalidate_mmap_work() local 33 unmap_mapping_pages(vnode->netfs.inode.i_mapping, 0, 0, false); in afs_invalidate_mmap_work() 39 struct afs_vnode *vnode; in afs_server_init_callback_work() local 44 list_for_each_entry(vnode, &cell->fs_open_mmaps, cb_mmap_link) { in afs_server_init_callback_work() 45 if (vnode->cb_server == server) { in afs_server_init_callback_work() 46 clear_bit(AFS_VNODE_CB_PROMISED, &vnode->flags); in afs_server_init_callback_work() 47 queue_work(system_unbound_wq, &vnode->cb_work); in afs_server_init_callback_work() 74 void __afs_break_callback(struct afs_vnode *vnode, enum afs_cb_break_reason reason) in __afs_break_callback() argument 78 clear_bit(AFS_VNODE_NEW_CONTENT, &vnode->flags); in __afs_break_callback() 79 if (test_and_clear_bit(AFS_VNODE_CB_PROMISED, &vnode in __afs_break_callback() 98 afs_break_callback(struct afs_vnode *vnode, enum afs_cb_break_reason reason) afs_break_callback() argument 152 struct afs_vnode *vnode; afs_break_one_callback() local [all...] |
H A D | write.c | 22 static void afs_write_to_cache(struct afs_vnode *vnode, loff_t start, size_t len, 72 struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); in afs_write_begin() local 81 vnode->fid.vid, vnode->fid.vnode, pos, len); in afs_write_begin() 87 ret = netfs_write_begin(&vnode->netfs, file, mapping, pos, len, &folio, fsdata); in afs_write_begin() 106 trace_afs_folio_dirty(vnode, tracepoint_string("alrdy"), folio); in afs_write_begin() 114 if (!test_bit(AFS_VNODE_NEW_CONTENT, &vnode->flags) && in afs_write_begin() 127 trace_afs_folio_dirty(vnode, tracepoint_string("confl"), folio); in afs_write_begin() 158 struct afs_vnode *vnode in afs_write_end() local 223 struct afs_vnode *vnode = AFS_FS_I(mapping->host); afs_kill_pages() local 261 struct afs_vnode *vnode = AFS_FS_I(mapping->host); afs_redirty_pages() local 290 afs_pages_written_back(struct afs_vnode *vnode, loff_t start, unsigned int len) afs_pages_written_back() argument 327 afs_get_writeback_key(struct afs_vnode *vnode, struct afs_wb_key **_wbk) afs_get_writeback_key() argument 365 struct afs_vnode *vnode = op->file[0].vnode; afs_store_data_success() local 386 afs_store_data(struct afs_vnode *vnode, struct iov_iter *iter, loff_t pos, bool laundering) afs_store_data() argument 461 afs_extend_writeback(struct address_space *mapping, struct afs_vnode *vnode, long *_count, loff_t start, loff_t max_len, bool new_content, bool caching, unsigned int *_len) afs_extend_writeback() argument 586 struct afs_vnode *vnode = AFS_FS_I(mapping->host); afs_write_back_from_locked_folio() local 807 struct afs_vnode *vnode = AFS_FS_I(mapping->host); afs_writepages() local 857 struct afs_vnode *vnode = AFS_FS_I(file_inode(iocb->ki_filp)); afs_file_write() local 891 struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); afs_fsync() local 915 struct afs_vnode *vnode = AFS_FS_I(inode); afs_page_mkwrite() local 970 afs_prune_wb_keys(struct afs_vnode *vnode) afs_prune_wb_keys() argument 1000 struct afs_vnode *vnode = AFS_FS_I(folio_inode(folio)); afs_launder_folio() local 1037 struct afs_vnode *vnode = priv; afs_write_to_cache_done() local 1047 afs_write_to_cache(struct afs_vnode *vnode, loff_t start, size_t len, loff_t i_size, bool caching) afs_write_to_cache() argument 1053 afs_write_to_cache_done, vnode, caching); afs_write_to_cache() local [all...] |
H A D | file.c | 97 int afs_cache_wb_key(struct afs_vnode *vnode, struct afs_file *af) in afs_cache_wb_key() argument 107 spin_lock(&vnode->wb_lock); in afs_cache_wb_key() 108 list_for_each_entry(p, &vnode->wb_keys, vnode_link) { in afs_cache_wb_key() 114 list_add_tail(&wbk->vnode_link, &vnode->wb_keys); in afs_cache_wb_key() 115 spin_unlock(&vnode->wb_lock); in afs_cache_wb_key() 121 spin_unlock(&vnode->wb_lock); in afs_cache_wb_key() 132 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_open() local 137 _enter("{%llx:%llu},", vnode->fid.vid, vnode->fid.vnode); in afs_open() 186 struct afs_vnode *vnode = AFS_FS_I(inode); afs_release() local 263 struct afs_vnode *vnode = op->file[0].vnode; afs_fetch_data_success() local 290 afs_fetch_data(struct afs_vnode *vnode, struct afs_read *req) afs_fetch_data() argument 317 struct afs_vnode *vnode = AFS_FS_I(subreq->rreq->inode); afs_issue_read() local 341 struct afs_vnode *vnode = AFS_FS_I(folio->mapping->host); afs_symlink_read_folio() local 372 struct afs_vnode *vnode = AFS_FS_I(rreq->inode); afs_begin_cache_operation() local 384 struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); afs_check_write_begin() local 415 struct afs_vnode *vnode = AFS_FS_I(folio_inode(folio)); afs_invalidate_dirty() local 490 struct afs_vnode *vnode = AFS_FS_I(folio_inode(folio)); afs_release_folio() local 517 afs_add_open_mmap(struct afs_vnode *vnode) afs_add_open_mmap() argument 530 afs_drop_open_mmap(struct afs_vnode *vnode) afs_drop_open_mmap() argument 549 struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); afs_file_mmap() local 574 struct afs_vnode *vnode = AFS_FS_I(file_inode(vmf->vma->vm_file)); afs_vm_map_pages() local 583 struct afs_vnode *vnode = AFS_FS_I(file_inode(iocb->ki_filp)); afs_file_read_iter() local 598 struct afs_vnode *vnode = AFS_FS_I(file_inode(in)); afs_file_splice_read() local [all...] |
H A D | security.c | 107 void afs_clear_permits(struct afs_vnode *vnode) in afs_clear_permits() argument 111 spin_lock(&vnode->lock); in afs_clear_permits() 112 permits = rcu_dereference_protected(vnode->permit_cache, in afs_clear_permits() 113 lockdep_is_held(&vnode->lock)); in afs_clear_permits() 114 RCU_INIT_POINTER(vnode->permit_cache, NULL); in afs_clear_permits() 115 spin_unlock(&vnode->lock); in afs_clear_permits() 139 * that returned a vnode status for a particular key. If a callback break 143 void afs_cache_permit(struct afs_vnode *vnode, struct key *key, in afs_cache_permit() argument 153 vnode->fid.vid, vnode in afs_cache_permit() 303 afs_check_permit_rcu(struct afs_vnode *vnode, struct key *key, afs_access_t *_access) afs_check_permit_rcu() argument 342 afs_check_permit(struct afs_vnode *vnode, struct key *key, afs_access_t *_access) afs_check_permit() argument 401 struct afs_vnode *vnode = AFS_FS_I(inode); afs_permission() local [all...] |
H A D | fs_operation.c | 51 * Lock the vnode(s) being operated upon. 55 struct afs_vnode *vnode = op->file[0].vnode; in afs_get_io_locks() local 56 struct afs_vnode *vnode2 = op->file[1].vnode; in afs_get_io_locks() 61 mutex_lock(&vnode->io_lock); in afs_get_io_locks() 67 if (!vnode2 || !op->file[1].need_io_lock || vnode == vnode2) in afs_get_io_locks() 70 if (vnode2 > vnode) in afs_get_io_locks() 71 swap(vnode, vnode2); in afs_get_io_locks() 73 if (mutex_lock_interruptible(&vnode->io_lock) < 0) { in afs_get_io_locks() 85 mutex_unlock(&vnode in afs_get_io_locks() 99 struct afs_vnode *vnode = op->file[0].vnode; afs_drop_io_locks() local 113 struct afs_vnode *vnode = vp->vnode; afs_prepare_vnode() local 138 struct afs_vnode *vnode = op->file[0].vnode; afs_begin_vnode_operation() local [all...] |
H A D | dir_edit.c | 110 static struct folio *afs_dir_get_folio(struct afs_vnode *vnode, pgoff_t index) in afs_dir_get_folio() argument 112 struct address_space *mapping = vnode->netfs.inode.i_mapping; in afs_dir_get_folio() 119 clear_bit(AFS_VNODE_DIR_VALID, &vnode->flags); in afs_dir_get_folio() 206 void afs_edit_dir_add(struct afs_vnode *vnode, in afs_edit_dir_add() argument 220 i_size = i_size_read(&vnode->netfs.inode); in afs_edit_dir_add() 223 clear_bit(AFS_VNODE_DIR_VALID, &vnode->flags); in afs_edit_dir_add() 227 folio0 = afs_dir_get_folio(vnode, 0); in afs_edit_dir_add() 252 folio = afs_dir_get_folio(vnode, index); in afs_edit_dir_add() 262 if (!test_bit(AFS_VNODE_DIR_VALID, &vnode->flags)) in afs_edit_dir_add() 275 afs_set_i_size(vnode, ( in afs_edit_dir_add() 374 afs_edit_dir_remove(struct afs_vnode *vnode, struct qstr *name, enum afs_edit_dir_reason why) afs_edit_dir_remove() argument [all...] |
H A D | xattr.c | 42 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_xattr_get_acl() local 46 op = afs_alloc_operation(NULL, vnode->volume); in afs_xattr_get_acl() 50 afs_op_set_vnode(op, 0, vnode); in afs_xattr_get_acl() 106 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_xattr_set_acl() local 111 op = afs_alloc_operation(NULL, vnode->volume); in afs_xattr_set_acl() 115 afs_op_set_vnode(op, 0, vnode); in afs_xattr_set_acl() 144 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_xattr_get_yfs() local 169 op = afs_alloc_operation(NULL, vnode->volume); in afs_xattr_get_yfs() 173 afs_op_set_vnode(op, 0, vnode); in afs_xattr_get_yfs() 237 struct afs_vnode *vnode in afs_xattr_set_yfs() local 273 struct afs_vnode *vnode = AFS_FS_I(inode); afs_xattr_get_cell() local 300 struct afs_vnode *vnode = AFS_FS_I(inode); afs_xattr_get_fid() local 338 struct afs_vnode *vnode = AFS_FS_I(inode); afs_xattr_get_volume() local [all...] |
H A D | dir.c | 113 struct address_space *mapping = req->vnode->netfs.inode.i_mapping; in afs_dir_read_cleanup() 195 dvnode->fid.vid, dvnode->fid.vnode, in afs_dir_dump() 287 req->vnode = dvnode; 479 ntohl(dire->u.vnode), in afs_dir_iterate_block() 596 cookie->fid.vnode = ino; in afs_lookup_one_filldir() 635 _leave(" = 0 { vn=%llu u=%u }", fid->vnode, fid->unique); in afs_do_lookup_one() 660 cookie->fids[cookie->nr_fids].vnode = ino; in afs_lookup_filldir() 666 cookie->fids[1].vnode = ino; in afs_lookup_filldir() 683 struct afs_vnode *vnode; in afs_do_lookup_success() local 714 if (vp->vnode) { in afs_do_lookup_success() 793 struct afs_vnode *dvnode = AFS_FS_I(dir), *vnode; afs_do_lookup() local 1089 struct afs_vnode *vnode, *dir; afs_d_revalidate() local 1256 struct afs_vnode *vnode = op->file[0].vnode; afs_check_for_remote_deletion() local 1271 struct afs_vnode *vnode; afs_vnode_new_inode() local 1372 struct afs_vnode *vnode = AFS_FS_I(d_inode(dentry)); afs_dir_remove_subdir() local 1427 struct afs_vnode *dvnode = AFS_FS_I(dir), *vnode = NULL; afs_rmdir() local 1479 struct afs_vnode *vnode = op->file[1].vnode; afs_dir_remove_link() local 1561 struct afs_vnode *vnode = AFS_FS_I(d_inode(dentry)); afs_unlink() local 1715 struct afs_vnode *vnode = AFS_FS_I(d_inode(from)); afs_link() local 1829 struct afs_vnode *vnode = AFS_FS_I(d_inode(op->dentry)); afs_rename_edit_dir() local 1912 struct afs_vnode *orig_dvnode, *new_dvnode, *vnode; afs_rename() local [all...] |
/kernel/liteos_a/fs/vfs/operation/ |
H A D | vfs_force_umount.c | 34 #include "vnode.h" 37 /* vnode operations returns EIO */ 38 static int ErrorVopCreate(struct Vnode *parent, const char *name, int mode, struct Vnode **vnode) in ErrorVopCreate() argument 43 (void)vnode; in ErrorVopCreate() 47 static int ErrorVopLookup(struct Vnode *parent, const char *name, int len, struct Vnode **vnode) in ErrorVopLookup() argument 52 (void)vnode; in ErrorVopLookup() 56 static int ErrorVopOpen(struct Vnode *vnode, int fd, int mode, int flags) in ErrorVopOpen() argument 58 (void)vnode; in ErrorVopOpen() 65 static int ErrorVopClose(struct Vnode *vnode) in ErrorVopClose() argument 67 (void)vnode; in ErrorVopClose() 72 ErrorVopReclaim(struct Vnode *vnode) ErrorVopReclaim() argument 78 ErrorVopUnlink(struct Vnode *parent, struct Vnode *vnode, const char *fileName) ErrorVopUnlink() argument 86 ErrorVopRmdir(struct Vnode *parent, struct Vnode *vnode, const char *dirName) ErrorVopRmdir() argument 94 ErrorVopMkdir(struct Vnode *parent, const char *dirName, mode_t mode, struct Vnode **vnode) ErrorVopMkdir() argument 103 ErrorVopReaddir(struct Vnode *vnode, struct fs_dirent_s *dir) ErrorVopReaddir() argument 110 ErrorVopOpendir(struct Vnode *vnode, struct fs_dirent_s *dir) ErrorVopOpendir() argument 117 ErrorVopRewinddir(struct Vnode *vnode, struct fs_dirent_s *dir) ErrorVopRewinddir() argument 124 ErrorVopClosedir(struct Vnode *vnode, struct fs_dirent_s *dir) ErrorVopClosedir() argument 132 ErrorVopGetattr(struct Vnode *vnode, struct stat *st) ErrorVopGetattr() argument 139 ErrorVopSetattr(struct Vnode *vnode, struct stat *st) ErrorVopSetattr() argument 146 ErrorVopChattr(struct Vnode *vnode, struct IATTR *attr) ErrorVopChattr() argument 162 ErrorVopTruncate(struct Vnode *vnode, off_t len) ErrorVopTruncate() argument 169 ErrorVopTruncate64(struct Vnode *vnode, off64_t len) ErrorVopTruncate64() argument 176 ErrorVopFscheck(struct Vnode *vnode, struct fs_dirent_s *dir) ErrorVopFscheck() argument 201 ErrorVopReadlink(struct Vnode *vnode, char *buffer, size_t bufLen) ErrorVopReadlink() argument 333 ErrorFopUnlink(struct Vnode *vnode) ErrorFopUnlink() argument 420 VnodeTryFree(struct Vnode *vnode) VnodeTryFree() argument 440 struct Vnode *vnode = NULL; VnodeTryFreeAll() local [all...] |
H A D | vfs_chattr.c | 43 #include "vnode.h" 60 struct Vnode *vnode = NULL; in chattr() local 69 ret = VnodeLookup(pathname, &vnode, 0); in chattr() 74 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) { in chattr() 79 /* The way we handle the stat depends on the type of vnode that we in chattr() 83 if (vnode->vop != NULL && vnode->vop->Chattr != NULL) { in chattr() 84 ret = vnode->vop->Chattr(vnode, att in chattr() [all...] |
/kernel/liteos_a/fs/vfs/ |
H A D | vnode.c | 34 #include "vnode.h"
42 static int g_totalVnodeSize = 0; /* total vnode size */
56 PRINT_ERR("Create mutex for vnode fail, status: %d", retval);
in VnodesInit() 87 struct Vnode *vnode = NULL;
in GetFromFreeList() local 90 PRINT_ERR("get vnode from free list failed, list empty but g_freeVnodeSize = %d!\n", g_freeVnodeSize);
in GetFromFreeList() 95 vnode = ENTRY_TO_VNODE(LOS_DL_LIST_FIRST(&g_vnodeFreeList));
in GetFromFreeList() 96 LOS_ListDelete(&vnode->actFreeEntry);
in GetFromFreeList() 98 return vnode;
in GetFromFreeList() 123 PRINT_ERR("VnodeAlloc failed, vnode size hit max but can't reclaim anymore!\n");
in VnodeReclaimLru() 136 struct Vnode* vnode in VnodeAlloc() local 180 VnodeFree(struct Vnode *vnode) VnodeFree() argument 221 struct Vnode *vnode = NULL; VnodeFreeAll() local 239 struct Vnode *vnode = NULL; VnodeInUseIter() local 300 ConvertVnodeIfMounted(struct Vnode *vnode) ConvertVnodeIfMounted() argument 322 RefreshLRU(struct Vnode *vnode) RefreshLRU() argument 332 ProcessVirtualVnode(struct Vnode *parent, uint32_t flags, struct Vnode **vnode) ProcessVirtualVnode() argument 473 VnodeLookup(const char *path, struct Vnode **vnode, uint32_t flags) VnodeLookup() argument 478 VnodeLookupFullpath(const char *fullpath, struct Vnode **vnode, uint32_t flags) VnodeLookupFullpath() argument 579 VnodeOpendir(struct Vnode *vnode, struct fs_dirent_s *dir) VnodeOpendir() argument 586 VnodeClosedir(struct Vnode *vnode, struct fs_dirent_s *dir) VnodeClosedir() argument 593 VnodeCreate(struct Vnode *parent, const char *name, int mode, struct Vnode **vnode) VnodeCreate() argument 643 VnodeGetattr(struct Vnode *vnode, struct stat *buf) VnodeGetattr() argument 658 VnodeChattr(struct Vnode *vnode, struct IATTR *attr) VnodeChattr() argument 679 VnodeDevLookup(struct Vnode *parentVnode, const char *path, int len, struct Vnode **vnode) VnodeDevLookup() argument [all...] |
H A D | vnode_hash.c | 32 #include "vnode.h" 53 PRINT_ERR("Create mutex for vnode hash list fail, status: %d", ret); in VnodeHashInit() 69 PRINTK(" vnode dump: col %d item %p\n", i, node); in VnodeHashDump() 76 uint32_t VfsHashIndex(struct Vnode *vnode) in VfsHashIndex() argument 78 if (vnode == NULL) { in VfsHashIndex() 81 return (vnode->hash + vnode->originMount->hashseed); in VfsHashIndex() 89 int VfsHashGet(const struct Mount *mount, uint32_t hash, struct Vnode **vnode, VfsHashCmp *fn, void *arg) in VfsHashGet() argument 93 if (mount == NULL || vnode == NULL) { in VfsHashGet() 110 *vnode in VfsHashGet() 118 VfsHashRemove(struct Vnode *vnode) VfsHashRemove() argument 128 VfsHashInsert(struct Vnode *vnode, uint32_t hash) VfsHashInsert() argument [all...] |
/kernel/liteos_a/fs/vfs/include/ |
H A D | vnode.h | 42 #define VNODE_FLAG_MOUNT_NEW (1 << 0) /* new mount vnode */ 43 #define VNODE_FLAG_MOUNT_ORIGIN (1 << 1) /* origin vnode */ 80 /* This structure is used for record vnode attr. */ 114 enum VnodeType type; /* vnode type */ 116 uint32_t hash; /* vnode hash */ 122 struct Vnode *parent; /* parent vnode */ 123 struct VnodeOps *vop; /* vnode operations */ 126 uint32_t flag; /* vnode flag */ 128 LIST_ENTRY actFreeEntry; /* vnode active/free list entry */ 129 struct Mount *originMount; /* fs info about this vnode */ [all...] |