Lines Matching refs:dentry
16 static int affs_hash_dentry(const struct dentry *,
18 static int affs_compare_dentry(const struct dentry *parent,
20 const struct dentry *dentry, const struct inode *inode,
23 static int affs_intl_hash_dentry(const struct dentry *,
25 static int affs_intl_compare_dentry(const struct dentry *parent,
27 const struct dentry *dentry, const struct inode *inode,
89 affs_hash_dentry(const struct dentry *dentry, const struct inode *inode, in affs_hash_dentry() argument
95 affs_intl_hash_dentry(const struct dentry *dentry, const struct inode *inode, in affs_intl_hash_dentry() argument
134 affs_compare_dentry(const struct dentry *parent, const struct inode *pinode, in affs_compare_dentry()
135 const struct dentry *dentry, const struct inode *inode, in affs_compare_dentry() argument
141 affs_intl_compare_dentry(const struct dentry *parent,const struct inode *pinode, in affs_intl_compare_dentry()
142 const struct dentry *dentry, const struct inode *inode, in affs_intl_compare_dentry() argument
153 affs_match(struct dentry *dentry, const u8 *name2, toupper_t toupper) in affs_match() argument
155 const u8 *name = dentry->d_name.name; in affs_match()
156 int len = dentry->d_name.len; in affs_match()
185 affs_find_entry(struct inode *dir, struct dentry *dentry) in affs_find_entry() argument
192 pr_debug("AFFS: find_entry(\"%.*s\")\n", (int)dentry->d_name.len, dentry->d_name.name); in affs_find_entry()
198 …key = be32_to_cpu(AFFS_HEAD(bh)->table[affs_hash_name(sb, dentry->d_name.name, dentry->d_name.len)… in affs_find_entry()
207 if (affs_match(dentry, AFFS_TAIL(sb, bh)->name, toupper)) in affs_find_entry()
213 struct dentry *
214 affs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd) in affs_lookup() argument
220 pr_debug("AFFS: lookup(\"%.*s\")\n",(int)dentry->d_name.len,dentry->d_name.name); in affs_lookup()
223 bh = affs_find_entry(dir, dentry); in affs_lookup()
231 dentry->d_fsdata = (void *)(long)ino; in affs_lookup()
243 d_add(dentry, inode); in affs_lookup()
248 affs_unlink(struct inode *dir, struct dentry *dentry) in affs_unlink() argument
251 dentry->d_inode->i_ino, in affs_unlink()
252 (int)dentry->d_name.len, dentry->d_name.name); in affs_unlink()
254 return affs_remove_header(dentry); in affs_unlink()
258 affs_create(struct inode *dir, struct dentry *dentry, umode_t mode, struct nameidata *nd) in affs_create() argument
264 pr_debug("AFFS: create(%lu,\"%.*s\",0%ho)\n",dir->i_ino,(int)dentry->d_name.len, in affs_create()
265 dentry->d_name.name,mode); in affs_create()
278 error = affs_add_entry(dir, inode, dentry, ST_FILE); in affs_create()
288 affs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in affs_mkdir() argument
294 (int)dentry->d_name.len,dentry->d_name.name,mode); in affs_mkdir()
306 error = affs_add_entry(dir, inode, dentry, ST_USERDIR); in affs_mkdir()
317 affs_rmdir(struct inode *dir, struct dentry *dentry) in affs_rmdir() argument
320 dentry->d_inode->i_ino, in affs_rmdir()
321 (int)dentry->d_name.len, dentry->d_name.name); in affs_rmdir()
323 return affs_remove_header(dentry); in affs_rmdir()
327 affs_symlink(struct inode *dir, struct dentry *dentry, const char *symname) in affs_symlink() argument
337 (int)dentry->d_name.len,dentry->d_name.name,symname); in affs_symlink()
388 error = affs_add_entry(dir, inode, dentry, ST_SOFTLINK); in affs_symlink()
402 affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in affs_link() argument
407 (int)dentry->d_name.len,dentry->d_name.name); in affs_link()
409 return affs_add_entry(dir, inode, dentry, ST_LINKFILE); in affs_link()
413 affs_rename(struct inode *old_dir, struct dentry *old_dentry, in affs_rename()
414 struct inode *new_dir, struct dentry *new_dentry) in affs_rename()