Lines Matching defs:dir
33 struct dentry *dir;
39 dir = dget_parent(file_dentry(filp));
40 if (IS_ENCRYPTED(d_inode(dir)) &&
41 !fscrypt_has_permitted_context(d_inode(dir), inode)) {
44 d_inode(dir)->i_ino);
47 dput(dir);
52 int __fscrypt_prepare_link(struct inode *inode, struct inode *dir,
62 if (!fscrypt_has_permitted_context(dir, inode))
97 int __fscrypt_prepare_lookup(struct inode *dir, struct dentry *dentry,
100 int err = fscrypt_setup_filename(dir, &dentry->d_name, 1, fname);
116 * @dir: the encrypted directory being searched
117 * @dentry: the dentry being looked up in @dir
131 int fscrypt_prepare_lookup_partial(struct inode *dir, struct dentry *dentry)
133 int err = fscrypt_get_encryption_info(dir, true);
135 if (!err && !fscrypt_has_encryption_key(dir)) {
144 int __fscrypt_prepare_readdir(struct inode *dir)
146 return fscrypt_get_encryption_info(dir, true);
202 * @dir: directory in which the symlink is being created
223 int fscrypt_prepare_symlink(struct inode *dir, const char *target,
234 policy = fscrypt_policy_to_inherit(dir);