/freebsd/sys/fs/unionfs/ |
H A D | union_vnops.c | 90 int lkflags; in unionfs_lookup() local 157 unionfs_forward_vop_start(dtmpvp, &lkflags); in unionfs_lookup() 159 unionfs_forward_vop_finish(dvp, dtmpvp, lkflags); in unionfs_lookup() 218 unionfs_forward_vop_start(ldvp, &lkflags); in unionfs_lookup() 221 unionfs_forward_vop_finish(dvp, ldvp, lkflags)) { in unionfs_lookup() 259 unionfs_forward_vop_start(udvp, &lkflags); in unionfs_lookup() 261 if (unionfs_forward_vop_finish(dvp, udvp, lkflags)) { in unionfs_lookup() 427 int lkflags; in unionfs_create() local 429 unionfs_forward_vop_start(udvp, &lkflags); in unionfs_create() 434 lkflags)) && error == 0) { in unionfs_create() [all …]
|
H A D | union.h | 164 unionfs_forward_vop_start(struct vnode *basevp, int *lkflags) in unionfs_forward_vop_start() argument 166 unionfs_forward_vop_start_pair(basevp, lkflags, NULL, NULL); in unionfs_forward_vop_start() 171 int lkflags) in unionfs_forward_vop_finish() argument 173 return (unionfs_forward_vop_finish_pair(unionvp, basevp, lkflags, in unionfs_forward_vop_finish()
|
H A D | union_subr.c | 309 int lkflags; in unionfs_nodeget() local 314 lkflags = (cnp ? cnp->cn_lkflags : 0); in unionfs_nodeget() 332 if (lkflags != 0) in unionfs_nodeget() 333 vn_lock(*vpp, lkflags | LK_RETRY); in unionfs_nodeget() 440 if (lkflags != 0) in unionfs_nodeget() 441 vn_lock(*vpp, lkflags | LK_RETRY); in unionfs_nodeget() 446 if ((lkflags & LK_SHARED) != 0) in unionfs_nodeget() 448 else if ((lkflags & LK_EXCLUSIVE) == 0) in unionfs_nodeget() 1056 unionfs_forward_vop_ref(struct vnode *basevp, int *lkflags) in unionfs_forward_vop_ref() argument 1059 *lkflags = VOP_ISLOCKED(basevp); in unionfs_forward_vop_ref() [all …]
|
/freebsd/sys/fs/msdosfs/ |
H A D | msdosfs_denode.c | 99 int lkflags, struct denode **depp) in deget() argument 112 pmp, dirclust, diroffset, lkflags, depp); in deget() 114 MPASS((lkflags & LK_TYPE_MASK) == LK_EXCLUSIVE); in deget() 138 error = vfs_hash_get(mntp, inode, lkflags, curthread, &nvp, in deget() 195 error = vfs_hash_insert(nvp, inode, lkflags, curthread, &xvp, in deget()
|
H A D | msdosfs_lookup.c | 102 msdosfs_deget_dotdot(struct mount *mp, void *arg, int lkflags, in msdosfs_deget_dotdot() argument
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clnode.c | 96 int lkflags) in ncl_nget() argument 116 error = vfs_hash_get(mntp, hash, lkflags, in ncl_nget() 179 error = vfs_hash_insert(vp, hash, lkflags, in ncl_nget()
|
H A D | nfs_clport.c | 127 int lkflags) in nfscl_nget() argument 155 error = vfs_hash_get(mntp, hash, lkflags, in nfscl_nget() 300 error = vfs_hash_insert(vp, hash, lkflags, in nfscl_nget()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_ctldir.c | 640 int lkflags = ap->a_cnp->cn_lkflags; in zfsctl_root_lookup() local 650 err = zfsctl_relock_dot(dvp, lkflags & LK_TYPE_MASK); in zfsctl_root_lookup() 655 lkflags, vpp); in zfsctl_root_lookup() 657 err = zfsctl_snapdir_vnode(dvp->v_mount, NULL, lkflags, vpp); in zfsctl_root_lookup() 935 int lkflags = cnp->cn_lkflags; in zfsctl_snapdir_lookup() local 945 err = zfsctl_relock_dot(dvp, lkflags & LK_TYPE_MASK); in zfsctl_snapdir_lookup() 951 err = vn_vget_ino_gen(dvp, zfsctl_root_vnode, NULL, lkflags, in zfsctl_snapdir_lookup() 982 err = zfsctl_mounted_here(vpp, lkflags); in zfsctl_snapdir_lookup()
|
H A D | zfs_vnops_os.c | 554 zfs_dd_callback(struct mount *mp, void *arg, int lkflags, struct vnode **vpp) in zfs_dd_callback() argument 559 error = vn_lock(*vpp, lkflags); in zfs_dd_callback() 566 zfs_lookup_lock(vnode_t *dvp, vnode_t *vp, const char *name, int lkflags) in zfs_lookup_lock() argument 579 ltype = lkflags & LK_TYPE_MASK; in zfs_lookup_lock() 617 error = vn_vget_ino_gen(dvp, zfs_dd_callback, vp, lkflags, &vp); in zfs_lookup_lock() 620 error = vn_lock(vp, lkflags); in zfs_lookup_lock()
|
/freebsd/sys/fs/tarfs/ |
H A D | tarfs_vfsops.c | 1142 tarfs_vget(struct mount *mp, ino_t ino, int lkflags, struct vnode **vpp) in tarfs_vget() argument 1151 lkflags); in tarfs_vget() 1154 error = vfs_hash_get(mp, ino, lkflags, td, vpp, NULL, NULL); in tarfs_vget() 1168 error = vget(tmp->znode, lkflags); in tarfs_vget() 1190 lockmgr(vp->v_vnlock, lkflags, NULL); in tarfs_vget() 1195 error = vfs_hash_insert(vp, ino, lkflags, td, vpp, NULL, NULL); in tarfs_vget()
|
/freebsd/sys/kern/ |
H A D | vfs_lookup.c | 767 enforce_lkflags(struct mount *mp, int lkflags) 770 if (mp == NULL || ((lkflags & LK_SHARED) && in needs_exclusive_leaf() 772 lkflags &= ~LK_SHARED; in needs_exclusive_leaf() 773 lkflags |= LK_EXCLUSIVE; in needs_exclusive_leaf() 775 lkflags |= LK_NODDLKTREAT; in needs_exclusive_leaf() 776 return (lkflags); in needs_exclusive_leaf() 1277 * lock, adjust our lkflags. in vfs_lookup() 756 enforce_lkflags(struct mount * mp,int lkflags) enforce_lkflags() argument
|
H A D | vfs_cache.c | 4653 int error, lkflags; in cache_fplookup_final_child() 4660 lkflags = LK_SHARED; in cache_fplookup_final_child() 4662 lkflags = LK_EXCLUSIVE; 4663 error = vget_finish(tvp, lkflags, tvs); 4989 int error, lkflags; in cache_fplookup_degenerate() 5024 lkflags = LK_SHARED; in cache_fplookup_emptypath() local 5026 lkflags = LK_EXCLUSIVE; in cache_fplookup_emptypath() 5027 error = vget_finish(dvp, lkflags, dvs); in cache_fplookup_emptypath() 5044 int error, lkflags; in cache_fplookup_emptypath() 5069 lkflags in cache_fplookup_noentry() 4633 int error, lkflags; cache_fplookup_final_child() local 4969 int error, lkflags; cache_fplookup_degenerate() local [all...] |
H A D | vfs_subr.c | 5096 vfs_deferred_inactive(struct vnode *vp, int lkflags) in vfs_deferred_inactive() argument 5105 if (vn_lock(vp, lkflags) == 0) { in vfs_deferred_inactive() 5126 int lkflags; in vfs_periodic_inactive() local 5128 lkflags = LK_EXCLUSIVE | LK_INTERLOCK; in vfs_periodic_inactive() 5130 lkflags |= LK_NOWAIT; in vfs_periodic_inactive() 5138 vfs_deferred_inactive(vp, lkflags); in vfs_periodic_inactive() 5172 int lkflags; in vfs_periodic_msync_inactive() local 5175 lkflags = LK_EXCLUSIVE | LK_INTERLOCK; in vfs_periodic_msync_inactive() 5177 lkflags |= LK_NOWAIT; in vfs_periodic_msync_inactive() 5187 vfs_deferred_inactive(vp, lkflags); in vfs_periodic_msync_inactive() [all …]
|
H A D | vfs_vnops.c | 2339 vn_get_ino_alloc_vget(struct mount *mp, void *arg, int lkflags, in vn_get_ino_alloc_vget() argument 2343 return (VFS_VGET(mp, *(ino_t *)arg, lkflags, rvp)); in vn_get_ino_alloc_vget() 2347 vn_vget_ino(struct vnode *vp, ino_t ino, int lkflags, struct vnode **rvp) in vn_vget_ino() argument 2351 lkflags, rvp)); in vn_vget_ino() 2356 int lkflags, struct vnode **rvp) in vn_vget_ino_gen() argument 2381 error = alloc(mp, alloc_arg, lkflags, rvp); in vn_vget_ino_gen()
|
/freebsd/sys/fs/cd9660/ |
H A D | cd9660_lookup.c | 56 cd9660_ino_alloc(struct mount *mp, void *arg, int lkflags, in cd9660_ino_alloc() argument 62 return (cd9660_vget_internal(mp, dd_arg->i_ino, lkflags, vpp, in cd9660_ino_alloc()
|
/freebsd/sys/fs/udf/ |
H A D | udf_vnops.c | 1125 int fsize, lkflags, ltype, numdirpasses; in udf_lookup() local 1132 lkflags = a->a_cnp->cn_lkflags; in udf_lookup() 1203 error = vn_vget_ino(dvp, id, lkflags, &tdp); in udf_lookup() 1210 ltype = lkflags & LK_TYPE_MASK; in udf_lookup() 1219 error = udf_vget(udfmp->im_mountp, id, lkflags, &tdp); in udf_lookup()
|
/freebsd/sys/fs/p9fs/ |
H A D | p9fs_vfsops.c | 501 p9fs_root(struct mount *mp, int lkflags, struct vnode **vpp) in p9fs_root() argument 531 error = p9fs_vget_common(mp, np, lkflags, np, vfid, vpp, NULL); in p9fs_root()
|
H A D | p9fs_vnops.c | 182 p9fs_lookup_alloc(struct mount *mp, void *arg, int lkflags, struct vnode **vpp) in p9fs_lookup_alloc() argument
|
/freebsd/usr.sbin/makefs/msdos/ |
H A D | msdosfs_denode.c | 84 int lkflags __unused, struct denode **depp) in deget()
|
/freebsd/sys/fs/fdescfs/ |
H A D | fdesc_vnops.c | 254 fdesc_get_ino_alloc(struct mount *mp, void *arg, int lkflags, in fdesc_get_ino_alloc() argument 266 vget(vp, lkflags | LK_RETRY); in fdesc_get_ino_alloc()
|
/freebsd/sys/sys/ |
H A D | vnode.h | 816 int vn_vget_ino(struct vnode *vp, ino_t ino, int lkflags, 819 void *alloc_arg, int lkflags, struct vnode **rvp);
|
/freebsd/sys/fs/tmpfs/ |
H A D | tmpfs_vnops.c | 84 tmpfs_vn_get_ino_alloc(struct mount *mp, void *arg, int lkflags, in tmpfs_vn_get_ino_alloc() argument 88 return (tmpfs_alloc_vp(mp, arg, lkflags, rvp)); in tmpfs_vn_get_ino_alloc()
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_vnops.c | 1405 fuse_lookup_alloc(struct mount *mp, void *arg, int lkflags, struct vnode **vpp) in fuse_lookup_alloc() argument
|