Lines Matching refs:dentry
16 static int affs_hash_dentry(const struct dentry *, struct qstr *);
17 static int affs_compare_dentry(const struct dentry *parent, const struct dentry *dentry,
20 static int affs_intl_hash_dentry(const struct dentry *, struct qstr *);
21 static int affs_intl_compare_dentry(const struct dentry *parent, const struct dentry *dentry,
85 affs_hash_dentry(const struct dentry *dentry, struct qstr *qstr) in affs_hash_dentry() argument
88 affs_nofilenametruncate(dentry)); in affs_hash_dentry()
93 affs_intl_hash_dentry(const struct dentry *dentry, struct qstr *qstr) in affs_intl_hash_dentry() argument
96 affs_nofilenametruncate(dentry)); in affs_intl_hash_dentry()
134 affs_compare_dentry(const struct dentry *parent, const struct dentry *dentry, in affs_compare_dentry() argument
143 affs_intl_compare_dentry(const struct dentry *parent, const struct dentry *dentry, in affs_intl_compare_dentry() argument
156 affs_match(struct dentry *dentry, const u8 *name2, toupper_t toupper) in affs_match() argument
158 const u8 *name = dentry->d_name.name; in affs_match()
159 int len = dentry->d_name.len; in affs_match()
188 affs_find_entry(struct inode *dir, struct dentry *dentry) in affs_find_entry() argument
195 pr_debug("%s(\"%pd\")\n", __func__, dentry); in affs_find_entry()
201 …key = be32_to_cpu(AFFS_HEAD(bh)->table[affs_hash_name(sb, dentry->d_name.name, dentry->d_name.len)… in affs_find_entry()
210 if (affs_match(dentry, AFFS_TAIL(sb, bh)->name, toupper)) in affs_find_entry()
216 struct dentry *
217 affs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) in affs_lookup() argument
223 pr_debug("%s(\"%pd\")\n", __func__, dentry); in affs_lookup()
226 bh = affs_find_entry(dir, dentry); in affs_lookup()
235 dentry->d_fsdata = (void *)(long)ino; in affs_lookup()
249 d_add(dentry, inode); in affs_lookup()
255 affs_unlink(struct inode *dir, struct dentry *dentry) in affs_unlink() argument
258 d_inode(dentry)->i_ino, dentry); in affs_unlink()
260 return affs_remove_header(dentry); in affs_unlink()
264 affs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) in affs_create() argument
271 __func__, dir->i_ino, dentry, mode); in affs_create()
285 error = affs_add_entry(dir, inode, dentry, ST_FILE); in affs_create()
295 affs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in affs_mkdir() argument
301 __func__, dir->i_ino, dentry, mode); in affs_mkdir()
313 error = affs_add_entry(dir, inode, dentry, ST_USERDIR); in affs_mkdir()
324 affs_rmdir(struct inode *dir, struct dentry *dentry) in affs_rmdir() argument
327 d_inode(dentry)->i_ino, dentry); in affs_rmdir()
329 return affs_remove_header(dentry); in affs_rmdir()
333 affs_symlink(struct inode *dir, struct dentry *dentry, const char *symname) in affs_symlink() argument
343 __func__, dir->i_ino, dentry, symname); in affs_symlink()
394 error = affs_add_entry(dir, inode, dentry, ST_SOFTLINK); in affs_symlink()
408 affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in affs_link() argument
413 dentry); in affs_link()
415 return affs_add_entry(dir, inode, dentry, ST_LINKFILE); in affs_link()
419 affs_rename(struct inode *old_dir, struct dentry *old_dentry, in affs_rename()
420 struct inode *new_dir, struct dentry *new_dentry) in affs_rename()