Lines Matching refs:cn_flags

148 	KASSERT((cnp->cn_flags & MPSAFE) != 0 || mtx_owned(&Giant) != 0,
154 KASSERT((cnp->cn_flags & OPMASK) == 0,
157 cnp->cn_flags &= ~LOCKSHARED;
161 cnp->cn_flags &= ~TRAILINGSLASH;
167 if ((cnp->cn_flags & HASBUF) == 0)
217 if (cnp->cn_flags & AUDITVNODE1)
219 if (cnp->cn_flags & AUDITVNODE2)
228 if (cnp->cn_flags & AUDITVNODE1)
230 if (cnp->cn_flags & AUDITVNODE2)
272 cnp->cn_flags, 0, 0);
296 ndp->ni_cnd.cn_flags |= GIANTHELD;
305 vfslocked = (ndp->ni_cnd.cn_flags & GIANTHELD) != 0;
306 ndp->ni_cnd.cn_flags &= ~GIANTHELD;
310 if ((cnp->cn_flags & ISSYMLINK) == 0) {
311 if ((cnp->cn_flags & (SAVENAME | SAVESTART)) == 0) {
314 cnp->cn_flags |= HASBUF;
316 if ((cnp->cn_flags & MPSAFE) == 0) {
319 ndp->ni_cnd.cn_flags |= GIANTHELD;
329 if ((cnp->cn_flags & NOMACCHECK) == 0) {
497 dvfslocked = (ndp->ni_cnd.cn_flags & GIANTHELD) != 0;
500 ndp->ni_cnd.cn_flags &= ~GIANTHELD;
501 wantparent = cnp->cn_flags & (LOCKPARENT | WANTPARENT);
504 docache = (cnp->cn_flags & NOCACHE) ^ NOCACHE;
509 rdonly = cnp->cn_flags & RDONLY;
510 cnp->cn_flags &= ~ISSYMLINK;
524 cnp->cn_flags));
564 cnp->cn_flags |= TRAILINGSLASH;
569 cnp->cn_flags |= MAKEENTRY;
571 cnp->cn_flags &= ~MAKEENTRY;
574 cnp->cn_flags |= ISDOTDOT;
576 cnp->cn_flags &= ~ISDOTDOT;
578 cnp->cn_flags |= ISLASTCN;
580 cnp->cn_flags &= ~ISLASTCN;
582 if ((cnp->cn_flags & ISLASTCN) != 0 &&
609 if (cnp->cn_flags & AUDITVNODE1)
611 else if (cnp->cn_flags & AUDITVNODE2)
614 if (!(cnp->cn_flags & (LOCKPARENT | LOCKLEAF)))
617 if (cnp->cn_flags & SAVESTART)
639 if (cnp->cn_flags & ISDOTDOT) {
644 if ((cnp->cn_flags & ISLASTCN) != 0 &&
659 (cnp->cn_flags & NOCROSSMOUNT) != 0)) {
690 if ((cnp->cn_flags & NOMACCHECK) == 0) {
707 (cnp->cn_flags & ISLASTCN) && (cnp->cn_flags & LOCKPARENT))
717 if (needs_exclusive_leaf(dp->v_mount, cnp->cn_flags))
724 cnp->cn_flags);
743 LK_RETRY, cnp->cn_flags));
760 if ((cnp->cn_flags & TRAILINGSLASH) &&
761 !(cnp->cn_flags & WILLBEDIR)) {
765 if ((cnp->cn_flags & LOCKPARENT) == 0)
772 if (cnp->cn_flags & SAVESTART) {
801 (cnp->cn_flags & NOCROSSMOUNT) == 0) {
816 cnp->cn_flags), &tdp);
831 ((cnp->cn_flags & FOLLOW) || (cnp->cn_flags & TRAILINGSLASH) ||
833 cnp->cn_flags |= ISSYMLINK;
861 KASSERT((cnp->cn_flags & ISLASTCN) || *ndp->ni_next == '/',
882 if ((cnp->cn_flags & TRAILINGSLASH) && dp->v_type != VDIR) {
894 if (cnp->cn_flags & SAVESTART) {
906 } else if ((cnp->cn_flags & LOCKPARENT) == 0 && ndp->ni_dvp != dp) {
911 if (cnp->cn_flags & AUDITVNODE1)
913 else if (cnp->cn_flags & AUDITVNODE2)
916 if ((cnp->cn_flags & LOCKLEAF) == 0)
923 if (needs_exclusive_leaf(dp->v_mount, cnp->cn_flags) &&
934 ndp->ni_cnd.cn_flags |= GIANTHELD;
949 ndp->ni_cnd.cn_flags &= ~GIANTHELD;
966 KASSERT(cnp->cn_flags & ISLASTCN,
971 wantparent = cnp->cn_flags & (LOCKPARENT|WANTPARENT);
973 rdonly = cnp->cn_flags & RDONLY;
974 cnp->cn_flags &= ~ISSYMLINK;
1003 if (!(cnp->cn_flags & LOCKLEAF))
1007 if (cnp->cn_flags & SAVESTART)
1012 if (cnp->cn_flags & ISDOTDOT)
1034 if (cnp->cn_flags & SAVESTART)
1036 if ((cnp->cn_flags & LOCKPARENT) == 0)
1063 if ((cnp->cn_flags & LOCKPARENT) == 0 && dvp != dp) {
1073 KASSERT(dp->v_type != VLNK || !(cnp->cn_flags & FOLLOW),
1077 if (cnp->cn_flags & SAVESTART)
1080 if ((cnp->cn_flags & LOCKLEAF) == 0)
1102 (ndp->ni_cnd.cn_flags & HASBUF)) {
1104 ndp->ni_cnd.cn_flags &= ~HASBUF;
1107 (ndp->ni_cnd.cn_flags & LOCKLEAF) && ndp->ni_vp)
1120 (ndp->ni_cnd.cn_flags & LOCKPARENT) &&
1124 (ndp->ni_cnd.cn_flags & (LOCKPARENT|WANTPARENT))) {
1135 (ndp->ni_cnd.cn_flags & SAVESTART)) {