Lines Matching refs:dentry
16 static int affs_hash_dentry(struct dentry *, struct qstr *);
17 static int affs_compare_dentry(struct dentry *, struct qstr *, struct qstr *);
19 static int affs_intl_hash_dentry(struct dentry *, struct qstr *);
20 static int affs_intl_compare_dentry(struct dentry *, struct qstr *, struct qstr *);
61 __affs_hash_dentry(struct dentry *dentry, struct qstr *qstr, toupper_t toupper) in __affs_hash_dentry() argument
81 affs_hash_dentry(struct dentry *dentry, struct qstr *qstr) in affs_hash_dentry() argument
83 return __affs_hash_dentry(dentry, qstr, affs_toupper); in affs_hash_dentry()
86 affs_intl_hash_dentry(struct dentry *dentry, struct qstr *qstr) in affs_intl_hash_dentry() argument
88 return __affs_hash_dentry(dentry, qstr, affs_intl_toupper); in affs_intl_hash_dentry()
92 __affs_compare_dentry(struct dentry *dentry, struct qstr *a, struct qstr *b, toupper_t toupper) in __affs_compare_dentry() argument
124 affs_compare_dentry(struct dentry *dentry, struct qstr *a, struct qstr *b) in affs_compare_dentry() argument
126 return __affs_compare_dentry(dentry, a, b, affs_toupper); in affs_compare_dentry()
129 affs_intl_compare_dentry(struct dentry *dentry, struct qstr *a, struct qstr *b) in affs_intl_compare_dentry() argument
131 return __affs_compare_dentry(dentry, a, b, affs_intl_toupper); in affs_intl_compare_dentry()
139 affs_match(struct dentry *dentry, const u8 *name2, toupper_t toupper) in affs_match() argument
141 const u8 *name = dentry->d_name.name; in affs_match()
142 int len = dentry->d_name.len; in affs_match()
171 affs_find_entry(struct inode *dir, struct dentry *dentry) in affs_find_entry() argument
178 pr_debug("AFFS: find_entry(\"%.*s\")\n", (int)dentry->d_name.len, dentry->d_name.name); in affs_find_entry()
184 …key = be32_to_cpu(AFFS_HEAD(bh)->table[affs_hash_name(sb, dentry->d_name.name, dentry->d_name.len)… in affs_find_entry()
193 if (affs_match(dentry, AFFS_TAIL(sb, bh)->name, toupper)) in affs_find_entry()
199 struct dentry *
200 affs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd) in affs_lookup() argument
206 pr_debug("AFFS: lookup(\"%.*s\")\n",(int)dentry->d_name.len,dentry->d_name.name); in affs_lookup()
209 bh = affs_find_entry(dir, dentry); in affs_lookup()
217 dentry->d_fsdata = (void *)(long)ino; in affs_lookup()
229 …dentry->d_op = AFFS_SB(sb)->s_flags & SF_INTL ? &affs_intl_dentry_operations : &affs_dentry_operat… in affs_lookup()
230 d_add(dentry, inode); in affs_lookup()
235 affs_unlink(struct inode *dir, struct dentry *dentry) in affs_unlink() argument
238 dentry->d_inode->i_ino, in affs_unlink()
239 (int)dentry->d_name.len, dentry->d_name.name); in affs_unlink()
241 return affs_remove_header(dentry); in affs_unlink()
245 affs_create(struct inode *dir, struct dentry *dentry, int mode, struct nameidata *nd) in affs_create() argument
251 pr_debug("AFFS: create(%lu,\"%.*s\",0%o)\n",dir->i_ino,(int)dentry->d_name.len, in affs_create()
252 dentry->d_name.name,mode); in affs_create()
265 error = affs_add_entry(dir, inode, dentry, ST_FILE); in affs_create()
275 affs_mkdir(struct inode *dir, struct dentry *dentry, int mode) in affs_mkdir() argument
281 (int)dentry->d_name.len,dentry->d_name.name,mode); in affs_mkdir()
293 error = affs_add_entry(dir, inode, dentry, ST_USERDIR); in affs_mkdir()
304 affs_rmdir(struct inode *dir, struct dentry *dentry) in affs_rmdir() argument
307 dentry->d_inode->i_ino, in affs_rmdir()
308 (int)dentry->d_name.len, dentry->d_name.name); in affs_rmdir()
310 return affs_remove_header(dentry); in affs_rmdir()
314 affs_symlink(struct inode *dir, struct dentry *dentry, const char *symname) in affs_symlink() argument
324 (int)dentry->d_name.len,dentry->d_name.name,symname); in affs_symlink()
372 error = affs_add_entry(dir, inode, dentry, ST_SOFTLINK); in affs_symlink()
386 affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in affs_link() argument
391 (int)dentry->d_name.len,dentry->d_name.name); in affs_link()
393 return affs_add_entry(dir, inode, dentry, ST_LINKFILE); in affs_link()
397 affs_rename(struct inode *old_dir, struct dentry *old_dentry, in affs_rename()
398 struct inode *new_dir, struct dentry *new_dentry) in affs_rename()