Lines Matching refs:dentry
36 static inline int exofs_add_nondir(struct dentry *dentry, struct inode *inode) in exofs_add_nondir() argument
38 int err = exofs_add_link(dentry, inode); in exofs_add_nondir()
40 d_instantiate(dentry, inode); in exofs_add_nondir()
48 static struct dentry *exofs_lookup(struct inode *dir, struct dentry *dentry, in exofs_lookup() argument
54 if (dentry->d_name.len > EXOFS_NAME_LEN) in exofs_lookup()
57 ino = exofs_inode_by_name(dir, dentry); in exofs_lookup()
59 return d_splice_alias(inode, dentry); in exofs_lookup()
62 static int exofs_create(struct inode *dir, struct dentry *dentry, umode_t mode, in exofs_create() argument
72 err = exofs_add_nondir(dentry, inode); in exofs_create()
77 static int exofs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, in exofs_mknod() argument
91 err = exofs_add_nondir(dentry, inode); in exofs_mknod()
96 static int exofs_symlink(struct inode *dir, struct dentry *dentry, in exofs_symlink() argument
131 err = exofs_add_nondir(dentry, inode); in exofs_symlink()
141 static int exofs_link(struct dentry *old_dentry, struct inode *dir, in exofs_link()
142 struct dentry *dentry) in exofs_link() argument
150 return exofs_add_nondir(dentry, inode); in exofs_link()
153 static int exofs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in exofs_mkdir() argument
175 err = exofs_add_link(dentry, inode); in exofs_mkdir()
179 d_instantiate(dentry, inode); in exofs_mkdir()
192 static int exofs_unlink(struct inode *dir, struct dentry *dentry) in exofs_unlink() argument
194 struct inode *inode = d_inode(dentry); in exofs_unlink()
199 de = exofs_find_entry(dir, dentry, &page); in exofs_unlink()
214 static int exofs_rmdir(struct inode *dir, struct dentry *dentry) in exofs_rmdir() argument
216 struct inode *inode = d_inode(dentry); in exofs_rmdir()
220 err = exofs_unlink(dir, dentry); in exofs_rmdir()
230 static int exofs_rename(struct inode *old_dir, struct dentry *old_dentry, in exofs_rename()
231 struct inode *new_dir, struct dentry *new_dentry) in exofs_rename()