/kernel/linux/linux-5.10/fs/afs/ |
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() 43 vnode->fid.vid, in dump_vnode() 44 vnode->fid.vnode, in dump_vnode() 45 vnode->fid.unique); in dump_vnode() 49 parent_vnode->fid.vnode, in dump_vnode() [all …]
|
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() 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->lock); in afs_lock_may_be_available() 41 if (vnode->lock_state == AFS_VNODE_LOCK_WAITING_FOR_CB) in afs_lock_may_be_available() 42 afs_next_locker(vnode, 0); in afs_lock_may_be_available() 43 trace_afs_flock_ev(vnode, NULL, afs_flock_callback_break, 0); in afs_lock_may_be_available() [all …]
|
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_string("alrdy"), in afs_write_begin() 130 if (!test_bit(AFS_VNODE_NEW_CONTENT, &vnode->flags) && in afs_write_begin() 166 struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); in afs_write_end() local [all …]
|
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() 123 key = afs_request_key(vnode->volume->cell); in afs_open() 136 ret = afs_validate(vnode, key); in afs_open() [all …]
|
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() 143 void afs_cache_permit(struct afs_vnode *vnode, struct key *key, in afs_cache_permit() argument 153 vnode->fid.vid, vnode->fid.vnode, key_serial(key), caller_access); in afs_cache_permit() 160 permits = rcu_dereference(vnode->permit_cache); in afs_cache_permit() 173 if (afs_cb_is_broken(cb_break, vnode)) { in afs_cache_permit() [all …]
|
D | fs_operation.c | 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->io_lock); in afs_get_io_locks() 99 struct afs_vnode *vnode = op->file[0].vnode; in afs_drop_io_locks() local 100 struct afs_vnode *vnode2 = op->file[1].vnode; in afs_drop_io_locks() [all …]
|
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->fid, vnode->cb_break, reason, false); in __afs_break_callback() 58 void afs_break_callback(struct afs_vnode *vnode, enum afs_cb_break_reason reason) in afs_break_callback() argument [all …]
|
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, (b + 1) * AFS_DIR_BLOCK_SIZE); in afs_edit_dir_add() [all …]
|
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 = AFS_FS_I(inode); in afs_xattr_set_yfs() local [all …]
|
D | dir_silly.c | 26 struct afs_vnode *dvnode = dvp->vnode; in afs_silly_rename_edit_dir() 27 struct afs_vnode *vnode = AFS_FS_I(d_inode(op->dentry)); in afs_silly_rename_edit_dir() local 45 &vnode->fid, afs_edit_dir_for_silly_1); in afs_silly_rename_edit_dir() 60 static int afs_do_silly_rename(struct afs_vnode *dvnode, struct afs_vnode *vnode, in afs_do_silly_rename() argument 85 trace_afs_silly_rename(vnode, false); in afs_do_silly_rename() 100 int afs_sillyrename(struct afs_vnode *dvnode, struct afs_vnode *vnode, in afs_sillyrename() argument 134 ihold(&vnode->vfs_inode); in afs_sillyrename() 136 ret = afs_do_silly_rename(dvnode, vnode, dentry, sdentry, key); in afs_sillyrename() 140 set_bit(AFS_VNODE_SILLY_DELETED, &vnode->flags); in afs_sillyrename() 151 iput(&vnode->vfs_inode); in afs_sillyrename() [all …]
|
D | dir.c | 173 dvnode->fid.vid, dvnode->fid.vnode, in afs_dir_check_pages() 420 ntohl(dire->u.vnode), in afs_dir_iterate_block() 545 cookie->fid.vnode = ino; in afs_lookup_one_filldir() 585 _leave(" = 0 { vn=%llu u=%u }", fid->vnode, fid->unique); in afs_do_lookup_one() 611 cookie->fids[cookie->nr_fids].vnode = ino; in afs_lookup_filldir() 617 cookie->fids[1].vnode = ino; in afs_lookup_filldir() 636 struct afs_vnode *vnode; in afs_do_lookup_success() local 667 if (vp->vnode) { in afs_do_lookup_success() 668 if (!test_bit(AFS_VNODE_UNSET, &vp->vnode->flags)) in afs_do_lookup_success() 673 vnode = AFS_FS_I(inode); in afs_do_lookup_success() [all …]
|
D | super.c | 658 struct afs_vnode *vnode = _vnode; in afs_i_init_once() local 660 memset(vnode, 0, sizeof(*vnode)); in afs_i_init_once() 661 inode_init_once(&vnode->vfs_inode); in afs_i_init_once() 662 mutex_init(&vnode->io_lock); in afs_i_init_once() 663 init_rwsem(&vnode->validate_lock); in afs_i_init_once() 664 spin_lock_init(&vnode->wb_lock); in afs_i_init_once() 665 spin_lock_init(&vnode->lock); in afs_i_init_once() 666 INIT_LIST_HEAD(&vnode->wb_keys); in afs_i_init_once() 667 INIT_LIST_HEAD(&vnode->pending_locks); in afs_i_init_once() 668 INIT_LIST_HEAD(&vnode->granted_locks); in afs_i_init_once() [all …]
|
D | cache.c | 45 struct afs_vnode *vnode = cookie_netfs_data; in afs_vnode_cache_check_aux() local 49 vnode->fid.vnode, vnode->fid.unique, vnode->status.data_version, in afs_vnode_cache_check_aux() 60 if (vnode->status.data_version != aux.data_version) { in afs_vnode_cache_check_aux() 62 aux.data_version, vnode->status.data_version); in afs_vnode_cache_check_aux()
|
D | dynroot.c | 31 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_iget5_pseudo_set() local 34 vnode->volume = as->volume; in afs_iget5_pseudo_set() 35 vnode->fid = *fid; in afs_iget5_pseudo_set() 36 inode->i_ino = fid->vnode; in afs_iget5_pseudo_set() 48 struct afs_vnode *vnode; in afs_iget_pseudo_dir() local 57 fid.vnode = 1; in afs_iget_pseudo_dir() 60 fid.vnode = atomic_inc_return(&afs_autocell_ino); in afs_iget_pseudo_dir() 64 inode = iget5_locked(sb, fid.vnode, in afs_iget_pseudo_dir() 72 inode, inode->i_ino, fid.vid, fid.vnode, fid.unique); in afs_iget_pseudo_dir() 74 vnode = AFS_FS_I(inode); in afs_iget_pseudo_dir() [all …]
|
/kernel/liteos_a/fs/vfs/ |
D | vnode.c | 78 struct Vnode *vnode = NULL; in GetFromFreeList() local 86 vnode = ENTRY_TO_VNODE(LOS_DL_LIST_FIRST(&g_vnodeFreeList)); in GetFromFreeList() 87 LOS_ListDelete(&vnode->actFreeEntry); in GetFromFreeList() 89 return vnode; in GetFromFreeList() 127 struct Vnode* vnode = NULL; in VnodeAlloc() local 130 vnode = GetFromFreeList(); in VnodeAlloc() 131 if ((vnode == NULL) && g_totalVnodeSize < LOSCFG_MAX_VNODE_SIZE) { in VnodeAlloc() 132 vnode = (struct Vnode*)zalloc(sizeof(struct Vnode)); in VnodeAlloc() 136 if (vnode == NULL) { in VnodeAlloc() 137 vnode = VnodeReclaimLru(); in VnodeAlloc() [all …]
|
D | vnode_hash.c | 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… in VfsHashGet() argument 93 if (mount == NULL || vnode == NULL) { in VfsHashGet() 110 *vnode = curVnode; in VfsHashGet() 114 *vnode = NULL; in VfsHashGet() 118 void VfsHashRemove(struct Vnode *vnode) in VfsHashRemove() argument 120 if (vnode == NULL) { in VfsHashRemove() 124 LOS_ListDelete(&vnode->hashEntry); in VfsHashRemove() [all …]
|
D | path_cache.c | 112 struct PathCache *PathCacheAlloc(struct Vnode *parent, struct Vnode *vnode, const char *name, uint8… in PathCacheAlloc() argument 118 if (name == NULL || len > NAME_MAX || parent == NULL || vnode == NULL) { in PathCacheAlloc() 137 pc->childVnode = vnode; in PathCacheAlloc() 140 LOS_ListAdd((&(vnode->parentPathCaches)), (&(pc->parentEntry))); in PathCacheAlloc() 162 int PathCacheLookup(struct Vnode *parent, const char *name, int len, struct Vnode **vnode) in PathCacheLookup() argument 171 *vnode = pc->childVnode; in PathCacheLookup() 179 static void FreeChildPathCache(struct Vnode *vnode) in FreeChildPathCache() argument 184 …LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(item, nextItem, &(vnode->childPathCaches), struct PathCache, child… in FreeChildPathCache() 189 static void FreeParentPathCache(struct Vnode *vnode) in FreeParentPathCache() argument 194 …LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(item, nextItem, &(vnode->parentPathCaches), struct PathCache, pare… in FreeParentPathCache() [all …]
|
/kernel/liteos_a/fs/vfs/operation/ |
D | vfs_force_umount.c | 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 static int ErrorVopReclaim(struct Vnode *vnode) in ErrorVopReclaim() argument 74 (void)vnode; in ErrorVopReclaim() [all …]
|
D | vfs_chattr.c | 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() 83 if (vnode->vop != NULL && vnode->vop->Chattr != NULL) { in chattr() 84 ret = vnode->vop->Chattr(vnode, attr); in chattr()
|
D | vfs_utime.c | 54 struct Vnode *vnode = NULL; in utime() local 77 ret = VnodeLookup(fullpath, &vnode, 0); in utime() 83 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) { in utime() 89 if (vnode->vop && vnode->vop->Chattr) { in utime() 100 ret = vnode->vop->Chattr(vnode, &attr); in utime()
|
D | vfs_check.c | 53 struct Vnode *vnode = NULL; in fscheck() local 58 ret = VnodeLookup(path, &vnode, 0); in fscheck() 72 if (vnode->vop && vnode->vop->Fscheck) { in fscheck() 73 ret = vnode->vop->Fscheck(vnode, dir); in fscheck()
|
/kernel/liteos_a/fs/vfs/include/ |
D | vnode.h | 133 int (*Create)(struct Vnode *parent, const char *name, int mode, struct Vnode **vnode); 134 int (*Lookup)(struct Vnode *parent, const char *name, int len, struct Vnode **vnode); 135 int (*Open)(struct Vnode *vnode, int fd, int mode, int flags); 136 ssize_t (*ReadPage)(struct Vnode *vnode, char *buffer, off_t pos); 137 ssize_t (*WritePage)(struct Vnode *vnode, char *buffer, off_t pos, size_t buflen); 138 int (*Close)(struct Vnode *vnode); 139 int (*Reclaim)(struct Vnode *vnode); 140 int (*Unlink)(struct Vnode *parent, struct Vnode *vnode, const char *fileName); 141 int (*Rmdir)(struct Vnode *parent, struct Vnode *vnode, const char *dirName); 142 int (*Mkdir)(struct Vnode *parent, const char *dirName, mode_t mode, struct Vnode **vnode); [all …]
|
/kernel/liteos_a/kernel/base/vm/ |
D | los_vm_filemap.c | 175 struct Vnode *vnode = NULL; in OsVmmFileRemove() local 181 if (!LOS_IsRegionFileValid(region) || (region->unTypeData.rf.vnode == NULL)) { in OsVmmFileRemove() 184 vnode = region->unTypeData.rf.vnode; in OsVmmFileRemove() 185 mapping = &vnode->mapping; in OsVmmFileRemove() 235 STATIC UINT32 GetDirtySize(LosFilePage *fpage, struct Vnode *vnode) in GetDirtySize() argument 242 if (stat(vnode->filePath, &buf_stat) != OK) { in GetDirtySize() 243 VM_ERR("FlushDirtyPage get file size failed. (filePath=%s)", vnode->filePath); in GetDirtySize() 267 struct Vnode *vnode = fpage->mapping->host; in OsFlushDirtyPage() local 268 if (vnode == NULL) { in OsFlushDirtyPage() 274 len = (len == 0) ? GetDirtySize(fpage, vnode) : len; in OsFlushDirtyPage() [all …]
|
/kernel/liteos_a/fs/fat/os_adapt/ |
D | fatfs.h | 128 int fatfs_truncate64(struct Vnode *vnode, off64_t len); 129 int fatfs_truncate(struct Vnode *vnode, off_t len); 133 int fatfs_stat(struct Vnode *vnode, struct stat *buff); 134 int fatfs_chattr(struct Vnode *vnode, struct IATTR *attr); 135 int fatfs_opendir(struct Vnode *vnode, struct fs_dirent_s *idir); 136 int fatfs_readdir(struct Vnode *vnode, struct fs_dirent_s *idir); 137 int fatfs_rewinddir(struct Vnode *vnode, struct fs_dirent_s *dir); 138 int fatfs_closedir(struct Vnode *vnode, struct fs_dirent_s *dir); 145 int fatfs_fscheck(struct Vnode* vnode, struct fs_dirent_s *dir);
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | afs.h | 771 __entry->fid.vnode = 0; 779 __entry->fid.vnode, 805 __entry->fid.vnode = 0; 813 __entry->fid.vnode, 840 __entry->fid.vnode = 0; 850 __entry->fid.vnode, 879 __entry->fid.vnode = 0; 891 __entry->fid.vnode, 1006 TP_PROTO(struct afs_vnode *vnode, loff_t off, loff_t i_size), 1008 TP_ARGS(vnode, off, i_size), [all …]
|