Lines Matching refs:dentry

43  * Note: the dentry argument is the parent dentry.
46 __affs_hash_dentry(const struct dentry *dentry, struct qstr *qstr, toupper_t fn, bool notruncate)
57 hash = init_name_hash(dentry);
67 affs_hash_dentry(const struct dentry *dentry, struct qstr *qstr)
69 return __affs_hash_dentry(dentry, qstr, affs_toupper,
70 affs_nofilenametruncate(dentry));
75 affs_intl_hash_dentry(const struct dentry *dentry, struct qstr *qstr)
77 return __affs_hash_dentry(dentry, qstr, affs_intl_toupper,
78 affs_nofilenametruncate(dentry));
90 * 'str' is the name of an already existing dentry, so the name
116 affs_compare_dentry(const struct dentry *dentry,
121 affs_nofilenametruncate(dentry));
125 affs_intl_compare_dentry(const struct dentry *dentry,
129 affs_nofilenametruncate(dentry));
138 affs_match(struct dentry *dentry, const u8 *name2, toupper_t fn)
140 const u8 *name = dentry->d_name.name;
141 int len = dentry->d_name.len;
170 affs_find_entry(struct inode *dir, struct dentry *dentry)
177 pr_debug("%s(\"%pd\")\n", __func__, dentry);
183 key = be32_to_cpu(AFFS_HEAD(bh)->table[affs_hash_name(sb, dentry->d_name.name, dentry->d_name.len)]);
192 if (affs_match(dentry, AFFS_TAIL(sb, bh)->name, fn))
198 struct dentry *
199 affs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
204 struct dentry *res;
206 pr_debug("%s(\"%pd\")\n", __func__, dentry);
209 bh = affs_find_entry(dir, dentry);
218 dentry->d_fsdata = (void *)(long)ino;
228 res = d_splice_alias(inode, dentry);
230 res->d_fsdata = dentry->d_fsdata;
236 affs_unlink(struct inode *dir, struct dentry *dentry)
239 d_inode(dentry)->i_ino, dentry);
241 return affs_remove_header(dentry);
246 struct dentry *dentry, umode_t mode, bool excl)
253 __func__, dir->i_ino, dentry, mode);
267 error = affs_add_entry(dir, inode, dentry, ST_FILE);
278 struct dentry *dentry, umode_t mode)
284 __func__, dir->i_ino, dentry, mode);
296 error = affs_add_entry(dir, inode, dentry, ST_USERDIR);
307 affs_rmdir(struct inode *dir, struct dentry *dentry)
310 d_inode(dentry)->i_ino, dentry);
312 return affs_remove_header(dentry);
317 struct dentry *dentry, const char *symname)
327 __func__, dir->i_ino, dentry, symname);
380 error = affs_add_entry(dir, inode, dentry, ST_SOFTLINK);
394 affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
399 dentry);
401 return affs_add_entry(dir, inode, dentry, ST_LINKFILE);
405 affs_rename(struct inode *old_dir, struct dentry *old_dentry,
406 struct inode *new_dir, struct dentry *new_dentry)
452 affs_xrename(struct inode *old_dir, struct dentry *old_dentry,
453 struct inode *new_dir, struct dentry *new_dentry)
507 struct dentry *old_dentry, struct inode *new_dir,
508 struct dentry *new_dentry, unsigned int flags)
523 static struct dentry *affs_get_parent(struct dentry *child)
553 static struct dentry *affs_fh_to_dentry(struct super_block *sb, struct fid *fid,
560 static struct dentry *affs_fh_to_parent(struct super_block *sb, struct fid *fid,