Lines Matching refs:tmpnode

41 #include <sys/fs/tmpnode.h>
45 static int tdircheckpath(struct tmpnode *, struct tmpnode *, struct cred *);
46 static int tdirrename(struct tmpnode *, struct tmpnode *, struct tmpnode *,
47 char *, struct tmpnode *, struct tdirent *, struct cred *);
48 static void tdirfixdotdot(struct tmpnode *, struct tmpnode *, struct tmpnode *);
49 static int tdirmaketnode(struct tmpnode *, struct tmount *, struct vattr *,
50 enum de_op, struct tmpnode **, struct cred *);
51 static int tdiraddentry(struct tmpnode *, struct tmpnode *, char *,
52 enum de_op, struct tmpnode *);
124 * no other operations can access the tmpnode at the same instance.
127 tmpfs_hash_change(struct tdirent *tdp, struct tmpnode *fromtp)
140 tmpfs_hash_lookup(char *name, struct tmpnode *parent, uint_t hold,
141 struct tmpnode **found)
146 struct tmpnode *tnp;
157 * We need to make sure that the tmpnode that
185 * to the found tmpnode with its vnode held.
189 struct tmpnode *parent,
191 struct tmpnode **foundtp,
213 * tmpfs_hash_lookup() will pass back the tmpnode
233 struct tmpnode *dir, /* target directory to make entry in */
236 struct tmpnode *fromparent, /* source directory if rename */
237 struct tmpnode *tp, /* source tmpnode, if link/rename */
239 struct tmpnode **tpp, /* return tmpnode, if create/mkdir */
244 struct tmpnode *found = NULL;
375 * Make new tmpnode and directory entry as required.
422 * Free dir entry space and decrement link count on tmpnode(s).
428 struct tmpnode *dir,
429 struct tmpnode *tp,
437 struct tmpnode *tnp;
483 * If the tmpnode in the tdirent changed, we were probably
543 struct tmpnode *parent, /* parent of directory to initialize */
544 struct tmpnode *dir) /* the new directory */
611 tdirtrunc(struct tmpnode *dir)
614 struct tmpnode *tp;
675 struct tmpnode *fromtp,
676 struct tmpnode *toparent,
680 struct tmpnode *dir, *dotdot;
729 struct tmpnode *fromparent, /* parent directory of source */
730 struct tmpnode *fromtp, /* source tmpnode */
731 struct tmpnode *toparent, /* parent directory of target */
733 struct tmpnode *to, /* target tmpnode */
734 struct tdirent *where, /* target tmpnode directory entry */
823 * Upgrade to write lock on "to" (i.e., the target tmpnode).
829 * Decrement the link count of the target tmpnode.
864 struct tmpnode *fromtp, /* child directory */
865 struct tmpnode *fromparent, /* old parent directory */
866 struct tmpnode *toparent) /* new parent directory */
873 * Increment the link count in the new parent tmpnode
884 * Decrement the link count of the old parent tmpnode.
900 struct tmpnode *dir, /* target directory to make entry in */
901 struct tmpnode *tp, /* new tmpnode */
904 struct tmpnode *fromtp)
1012 struct tmpnode *dir,
1016 struct tmpnode **newnode,
1019 struct tmpnode *tp;
1028 tp = tmp_memalloc(sizeof (struct tmpnode), TMP_MUSTHAVE);