Lines Matching defs:parent

776 	struct dentry *parent = nd->path.dentry;
787 BUG_ON(nd->inode != parent->d_inode);
827 * We need to move both the parent and the dentry from the RCU domain
830 * number of the parent after we got the child sequence number. So we
831 * know the parent must still be valid if the child sequence number is
1116 /* Allowed if parent directory not sticky and world-writable. */
1120 /* Allowed if parent directory and link owner match. */
1268 * Replace @path with the path of the mountpoint in the parent mount.
1277 struct mount *parent;
1281 parent = mnt->mnt_parent;
1282 if (parent == mnt) {
1286 mntget(&parent->mnt);
1292 path->mnt = &parent->mnt;
1620 struct dentry *dentry, *parent = nd->path.dentry;
1629 dentry = __d_lookup_rcu(parent, &nd->last, &nd->next_seq);
1637 * This sequence count validates that the parent had no
1640 if (read_seqcount_retry(&parent->d_seq, nd->seq))
1652 dentry = __d_lookup(parent, &nd->last);
1877 struct dentry *parent, *old;
1898 parent = old->d_parent;
1899 nd->next_seq = read_seqcount_begin(&parent->d_seq);
1903 if (unlikely(!path_connected(nd->path.mnt, parent)))
1905 return parent;
1917 struct dentry *parent;
1934 parent = dget_parent(nd->path.dentry);
1935 if (unlikely(!path_connected(nd->path.mnt, parent))) {
1936 dput(parent);
1939 return parent;
1951 struct dentry *parent;
1959 parent = follow_dotdot_rcu(nd);
1961 parent = follow_dotdot(nd);
1962 if (IS_ERR(parent))
1963 return ERR_CAST(parent);
1964 error = step_into(nd, WALK_NOFOLLOW, parent);
1991 * parent relationships.
2289 struct dentry *parent = nd->path.dentry;
2291 if (unlikely(parent->d_flags & DCACHE_OP_HASH)) {
2293 err = parent->d_op->d_hash(parent, &this);
2527 struct path *parent)
2534 *parent = nd->path;
2544 unsigned int flags, struct path *parent,
2554 retval = path_parentat(&nd, flags | LOOKUP_RCU, parent);
2556 retval = path_parentat(&nd, flags, parent);
2558 retval = path_parentat(&nd, flags | LOOKUP_REVAL, parent);
2562 audit_inode(name, parent->dentry, AUDIT_INODE_PARENT);
2569 unsigned int flags, struct path *parent,
2572 return __filename_parentat(dfd, name, flags, parent, last, type, NULL);
2575 /* does lookup, returns the object with parent locked */
2619 * vfs_path_parent_lookup - lookup a parent path relative to a dentry-vfsmount pair
2622 * @parent: pointer to struct path to fill
2628 struct path *parent, struct qstr *last, int *type,
2631 return __filename_parentat(AT_FDCWD, filename, flags, parent, last,
2790 * Unlike lookup_one_len, it should be called without the parent
2823 * Note that pinned negative with unlocked parent _can_ become positive at any
2855 * Unlike lookup_one_len, it should be called without the parent
2868 * most of the users want. Note that pinned negative with unlocked parent
2886 struct dentry *parent = dget_parent(path->dentry);
2890 if (unlikely(!path_connected(path->mnt, parent))) {
2891 dput(parent);
2895 path->dentry = parent;
2896 child = d_hash_and_lookup(parent, &this);
2901 dput(parent);
3103 * @dir: parent directory of the new inode
3123 * @dir: parent directory of the new inode
3383 * Must be called with parent locked (exclusive in O_CREAT case).
4282 * @dir: parent directory
4529 * @dir: new parent
4735 * different parent).
4739 * only under ->s_vfs_rename_mutex _and_ that parent of the object we
4742 * That works since everybody except rename does "lock parent, lookup,
4795 * If we are going to change the parent - check write permissions,
4823 * rename or cross-directory exchange since its parent changes.
4825 * exchange due to parent change and on any rename due to becoming