Lines Matching defs:nd
742 * @nd: pointer to nameidata
754 * Note that in case of error, nd->intent.open.file is destroyed, but the
759 struct file *lookup_instantiate_filp(struct nameidata *nd, struct dentry *dentry,
764 if (IS_ERR(nd->intent.open.file))
768 nd->intent.open.file = __dentry_open(dget(dentry), mntget(nd->path.mnt),
769 nd->intent.open.file,
772 return nd->intent.open.file;
774 release_open_intent(nd);
775 nd->intent.open.file = (struct file *)dentry;
782 * @nd: pointer to nameidata
787 struct file *nameidata_to_filp(struct nameidata *nd)
793 filp = nd->intent.open.file;
796 filp = __dentry_open(nd->path.dentry, nd->path.mnt, filp,
799 path_put(&nd->path);