Home
last modified time | relevance | path

Searched refs:vnode (Results 26 - 50 of 104) sorted by relevance

12345

/kernel/linux/linux-5.10/fs/afs/
H A Ddir_silly.c26 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 in afs_sillyrename()
192 afs_do_silly_unlink(struct afs_vnode *dvnode, struct afs_vnode *vnode, struct dentry *dentry, struct key *key) afs_do_silly_unlink() argument
238 struct afs_vnode *vnode = AFS_FS_I(inode); afs_silly_iput() local
[all...]
H A Dsuper.c660 struct afs_vnode *vnode = _vnode; in afs_i_init_once() local
662 memset(vnode, 0, sizeof(*vnode)); in afs_i_init_once()
663 inode_init_once(&vnode->vfs_inode); in afs_i_init_once()
664 mutex_init(&vnode->io_lock); in afs_i_init_once()
665 init_rwsem(&vnode->validate_lock); in afs_i_init_once()
666 spin_lock_init(&vnode->wb_lock); in afs_i_init_once()
667 spin_lock_init(&vnode->lock); in afs_i_init_once()
668 INIT_LIST_HEAD(&vnode->wb_keys); in afs_i_init_once()
669 INIT_LIST_HEAD(&vnode in afs_i_init_once()
680 struct afs_vnode *vnode; afs_alloc_inode() local
718 struct afs_vnode *vnode = AFS_FS_I(inode); afs_destroy_inode() local
755 struct afs_vnode *vnode = AFS_FS_I(d_inode(dentry)); afs_statfs() local
[all...]
H A Dcache.c32 .name = "AFS.vnode",
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()
H A Ddynroot.c31 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 in afs_iget_pseudo_dir()
159 struct afs_vnode *vnode = AFS_FS_I(dir); afs_try_auto_mntpt() local
[all...]
H A Drotate.c18 * Begin iteration through a server list, starting with the vnode's last used
22 struct afs_vnode *vnode) in afs_start_fs_iteration()
37 cb_server = vnode->cb_server; in afs_start_fs_iteration()
39 /* See if the vnode's preferred record is still available */ in afs_start_fs_iteration()
49 * serving this vnode, then we can't switch to another server in afs_start_fs_iteration()
58 write_seqlock(&vnode->cb_lock); in afs_start_fs_iteration()
59 ASSERTCMP(cb_server, ==, vnode->cb_server); in afs_start_fs_iteration()
60 vnode->cb_server = NULL; in afs_start_fs_iteration()
61 if (test_and_clear_bit(AFS_VNODE_CB_PROMISED, &vnode->flags)) in afs_start_fs_iteration()
62 vnode in afs_start_fs_iteration()
21 afs_start_fs_iteration(struct afs_operation *op, struct afs_vnode *vnode) afs_start_fs_iteration() argument
113 struct afs_vnode *vnode = op->file[0].vnode; afs_select_fileserver() local
[all...]
H A Dinternal.h179 struct list_head vnode_link; /* Link in vnode->wb_keys */
198 * Record of an outstanding read operation on a vnode.
211 struct afs_vnode *vnode; member
599 AFS_VNODE_LOCK_NONE, /* The vnode has no lock on the server */
606 AFS_VNODE_LOCK_DELETED, /* The vnode has been deleted whilst we have a lock */
618 struct afs_volume *volume; /* volume on which vnode resides */
627 struct rw_semaphore validate_lock; /* lock for validating this vnode */
633 #define AFS_VNODE_CB_PROMISED 0 /* Set if vnode has a callback promise */
634 #define AFS_VNODE_UNSET 1 /* set if vnode attributes not yet set */
636 #define AFS_VNODE_ZAP_DATA 3 /* set if vnode'
664 afs_vnode_cache(struct afs_vnode *vnode) afs_vnode_cache() argument
748 struct afs_vnode *vnode; global() member
968 afs_calc_vnode_cb_break(struct afs_vnode *vnode) afs_calc_vnode_cb_break() argument
973 afs_cb_is_broken(unsigned int cb_break, const struct afs_vnode *vnode) afs_cb_is_broken() argument
1117 afs_op_set_vnode(struct afs_operation *op, unsigned int n, struct afs_vnode *vnode) afs_op_set_vnode() argument
1185 afs_v2net(struct afs_vnode *vnode) afs_v2net() argument
1557 AFS_VNODE_TO_I(struct afs_vnode *vnode) AFS_VNODE_TO_I() argument
1580 afs_set_i_size(struct afs_vnode *vnode, u64 size) afs_set_i_size() argument
1604 afs_bad(struct afs_vnode *vnode, enum afs_file_error where) afs_bad() argument
[all...]
H A Dfsclient.c25 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid()
278 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_fetch_status()
289 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_status()
465 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_data64()
501 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_data()
573 *bp++ = htonl(dvp->fid.vnode); in afs_fs_create_file()
626 *bp++ = htonl(dvp->fid.vnode); in afs_fs_make_dir()
705 *bp++ = htonl(dvp->fid.vnode); in afs_fs_remove_file()
752 *bp++ = htonl(dvp->fid.vnode); in afs_fs_remove_dir()
829 *bp++ = htonl(dvp->fid.vnode); in afs_fs_link()
[all...]
/kernel/linux/linux-6.6/fs/afs/
H A Ddir_silly.c26 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->netfs.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 in afs_sillyrename()
192 afs_do_silly_unlink(struct afs_vnode *dvnode, struct afs_vnode *vnode, struct dentry *dentry, struct key *key) afs_do_silly_unlink() argument
238 struct afs_vnode *vnode = AFS_FS_I(inode); afs_silly_iput() local
[all...]
H A Dsuper.c661 struct afs_vnode *vnode = _vnode; in afs_i_init_once() local
663 memset(vnode, 0, sizeof(*vnode)); in afs_i_init_once()
664 inode_init_once(&vnode->netfs.inode); in afs_i_init_once()
665 mutex_init(&vnode->io_lock); in afs_i_init_once()
666 init_rwsem(&vnode->validate_lock); in afs_i_init_once()
667 spin_lock_init(&vnode->wb_lock); in afs_i_init_once()
668 spin_lock_init(&vnode->lock); in afs_i_init_once()
669 INIT_LIST_HEAD(&vnode->wb_keys); in afs_i_init_once()
670 INIT_LIST_HEAD(&vnode in afs_i_init_once()
682 struct afs_vnode *vnode; afs_alloc_inode() local
719 struct afs_vnode *vnode = AFS_FS_I(inode); afs_destroy_inode() local
756 struct afs_vnode *vnode = AFS_FS_I(d_inode(dentry)); afs_statfs() local
[all...]
H A Ddynroot.c31 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 in afs_iget_pseudo_dir()
160 struct afs_vnode *vnode = AFS_FS_I(dir); afs_try_auto_mntpt() local
[all...]
H A Drotate.c18 * Begin iteration through a server list, starting with the vnode's last used
22 struct afs_vnode *vnode) in afs_start_fs_iteration()
37 cb_server = vnode->cb_server; in afs_start_fs_iteration()
39 /* See if the vnode's preferred record is still available */ in afs_start_fs_iteration()
49 * serving this vnode, then we can't switch to another server in afs_start_fs_iteration()
58 write_seqlock(&vnode->cb_lock); in afs_start_fs_iteration()
59 ASSERTCMP(cb_server, ==, vnode->cb_server); in afs_start_fs_iteration()
60 vnode->cb_server = NULL; in afs_start_fs_iteration()
61 if (test_and_clear_bit(AFS_VNODE_CB_PROMISED, &vnode->flags)) in afs_start_fs_iteration()
62 vnode in afs_start_fs_iteration()
21 afs_start_fs_iteration(struct afs_operation *op, struct afs_vnode *vnode) afs_start_fs_iteration() argument
113 struct afs_vnode *vnode = op->file[0].vnode; afs_select_fileserver() local
[all...]
H A Dinternal.h182 struct list_head vnode_link; /* Link in vnode->wb_keys */
201 * Record of an outstanding read operation on a vnode.
209 struct afs_vnode *vnode; /* The file being read into. */ member
607 AFS_VNODE_LOCK_NONE, /* The vnode has no lock on the server */
614 AFS_VNODE_LOCK_DELETED, /* The vnode has been deleted whilst we have a lock */
625 struct afs_volume *volume; /* volume on which vnode resides */
631 struct rw_semaphore validate_lock; /* lock for validating this vnode */
637 #define AFS_VNODE_CB_PROMISED 0 /* Set if vnode has a callback promise */
638 #define AFS_VNODE_UNSET 1 /* set if vnode attributes not yet set */
640 #define AFS_VNODE_ZAP_DATA 3 /* set if vnode'
672 afs_vnode_cache(struct afs_vnode *vnode) afs_vnode_cache() argument
681 afs_vnode_set_cache(struct afs_vnode *vnode, struct fscache_cookie *cookie) afs_vnode_set_cache() argument
767 struct afs_vnode *vnode; global() member
882 afs_set_cache_aux(struct afs_vnode *vnode, struct afs_vnode_cache_aux *aux) afs_set_cache_aux() argument
888 afs_invalidate_cache(struct afs_vnode *vnode, unsigned int flags) afs_invalidate_cache() argument
989 afs_calc_vnode_cb_break(struct afs_vnode *vnode) afs_calc_vnode_cb_break() argument
994 afs_cb_is_broken(unsigned int cb_break, const struct afs_vnode *vnode) afs_cb_is_broken() argument
1141 afs_op_set_vnode(struct afs_operation *op, unsigned int n, struct afs_vnode *vnode) afs_op_set_vnode() argument
1211 afs_v2net(struct afs_vnode *vnode) afs_v2net() argument
1592 AFS_VNODE_TO_I(struct afs_vnode *vnode) AFS_VNODE_TO_I() argument
1615 afs_set_i_size(struct afs_vnode *vnode, u64 size) afs_set_i_size() argument
1639 afs_bad(struct afs_vnode *vnode, enum afs_file_error where) afs_bad() argument
[all...]
/kernel/liteos_a/fs/vfs/
H A Dpath_cache.c36 #include "vnode.h"
112 struct PathCache *PathCacheAlloc(struct Vnode *parent, struct Vnode *vnode, const char *name, uint8_t len) 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, childEntry) { in FreeChildPathCache()
189 static void FreeParentPathCache(struct Vnode *vnode) in FreeParentPathCache() argument
199 VnodePathCacheFree(struct Vnode *vnode) VnodePathCacheFree() argument
[all...]
/kernel/liteos_a/fs/vfs/operation/
H A Dvfs_utime.c39 #include "vnode.h"
54 struct Vnode *vnode = NULL; in utime() local
75 /* Get the vnode for this file */ in utime()
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, in utime()
[all...]
H A Dvfs_check.c45 #include "vnode.h"
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/kernel/base/vm/
H A Dlos_vm_filemap.c45 #include "vnode.h"
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 in OsFlushDirtyPage() local
373 struct Vnode *vnode = NULL; OsVmmFileFault() local
512 struct Vnode *vnode = NULL; OsNamedMMap() local
[all...]
H A Dlos_vm_fault.c49 #include "vnode.h"
113 VM_ERR("region args invalid, file path: %s", region->unTypeData.rf.vnode->filePath); in OsDoReadFault()
117 (VOID)LOS_MuxAcquire(&region->unTypeData.rf.vnode->mapping.mux_lock); in OsDoReadFault()
131 (VOID)LOS_MuxRelease(&region->unTypeData.rf.vnode->mapping.mux_lock); in OsDoReadFault()
135 (VOID)LOS_MuxRelease(&region->unTypeData.rf.vnode->mapping.mux_lock); in OsDoReadFault()
138 (VOID)LOS_MuxRelease(&region->unTypeData.rf.vnode->mapping.mux_lock); in OsDoReadFault()
152 LOS_SpinLockSave(&region->unTypeData.rf.vnode->mapping.list_lock, &intSave); in OsCowUnmapOrg()
153 fpage = OsFindGetEntry(&region->unTypeData.rf.vnode->mapping, vmf->pgoff); in OsCowUnmapOrg()
166 LOS_SpinUnlockRestore(&region->unTypeData.rf.vnode->mapping.list_lock, intSave); in OsCowUnmapOrg()
204 (VOID)LOS_MuxAcquire(&region->unTypeData.rf.vnode in OsDoCowFault()
[all...]
/kernel/linux/linux-5.10/include/trace/events/
H A Dafs.h771 __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, of
[all...]
/kernel/linux/linux-6.6/include/trace/events/
H A Dafs.h777 __entry->fid.vnode = 0;
785 __entry->fid.vnode,
811 __entry->fid.vnode = 0;
819 __entry->fid.vnode,
846 __entry->fid.vnode = 0;
856 __entry->fid.vnode,
885 __entry->fid.vnode = 0;
897 __entry->fid.vnode,
999 TP_PROTO(struct afs_vnode *vnode, loff_t off, loff_t i_size),
1001 TP_ARGS(vnode, of
[all...]
/kernel/liteos_a/fs/fat/os_adapt/
H A Dfatfs.h128 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/liteos_a/fs/proc/os_adapt/
H A Dproc_vfs.c80 int VfsProcfsCreate(struct Vnode* parent, const char *name, int mode, struct Vnode **vnode) in VfsProcfsCreate() argument
115 *vnode = vp; in VfsProcfsCreate()
243 int VfsProcfsMkdir(struct Vnode *parent, const char *dirName, mode_t mode, struct Vnode **vnode) in VfsProcfsMkdir() argument
256 *vnode = EntryToVnode(pde); in VfsProcfsMkdir()
257 (*vnode)->vop = parent->vop; in VfsProcfsMkdir()
258 (*vnode)->parent = parent; in VfsProcfsMkdir()
259 (*vnode)->originMount = parent->originMount; in VfsProcfsMkdir()
260 if ((*vnode)->type == VNODE_TYPE_DIR) { in VfsProcfsMkdir()
261 (*vnode)->mode = S_IFDIR | PROCFS_DEFAULT_MODE; in VfsProcfsMkdir()
263 (*vnode) in VfsProcfsMkdir()
268 VfsProcfsRmdir(struct Vnode *parent, struct Vnode *vnode, const char *dirName) VfsProcfsRmdir() argument
428 VfsProcfsReadlink(struct Vnode *vnode, char *buffer, size_t bufLen) VfsProcfsReadlink() argument
[all...]
H A Dfs_cache_proc.c33 #include "vnode.h"
124 struct Vnode *vnode = NULL; in PageCacheMapProcess() local
128 LOS_DL_LIST_FOR_EACH_ENTRY(vnode, vnodeList, struct Vnode, actFreeEntry) { in PageCacheMapProcess()
129 mapping = &vnode->mapping; in PageCacheMapProcess()
130 LosBufPrintf(buf, "%p, %s:[", vnode, vnode->filePath); in PageCacheMapProcess()
/kernel/linux/linux-5.10/fs/proc/
H A Dbootconfig.c28 struct xbc_node *leaf, *vnode; in copy_xbc_key_value_list() local
46 vnode = xbc_node_get_child(leaf); in copy_xbc_key_value_list()
47 if (vnode) { in copy_xbc_key_value_list()
48 xbc_array_for_each_value(vnode, val) { in copy_xbc_key_value_list()
54 q, val, q, vnode->next ? ", " : "\n"); in copy_xbc_key_value_list()
/kernel/linux/linux-6.6/fs/proc/
H A Dbootconfig.c28 struct xbc_node *leaf, *vnode; in copy_xbc_key_value_list() local
46 vnode = xbc_node_get_child(leaf); in copy_xbc_key_value_list()
47 if (vnode) { in copy_xbc_key_value_list()
48 xbc_array_for_each_value(vnode, val) { in copy_xbc_key_value_list()
54 q, val, q, xbc_node_is_array(vnode) ? ", " : "\n"); in copy_xbc_key_value_list()
/kernel/liteos_a/fs/vfs/include/
H A Dpath_cache.h36 #include "vnode.h"
39 struct Vnode *parentVnode; /* vnode points to the cache */
40 struct Vnode *childVnode; /* vnode the cache points to */
41 LIST_ENTRY parentEntry; /* list entry for cache list in the parent vnode */
42 LIST_ENTRY childEntry; /* list entry for cache list in the child vnode */
53 struct PathCache *PathCacheAlloc(struct Vnode *parent, struct Vnode *vnode, const char *name, uint8_t len);
54 int PathCacheLookup(struct Vnode *parent, const char *name, int len, struct Vnode **vnode);
55 void VnodePathCacheFree(struct Vnode *vnode);

Completed in 20 milliseconds

12345