Lines Matching refs:dentry

111 static int omfs_add_link(struct dentry *dentry, struct inode *inode)  in omfs_add_link()  argument
113 struct inode *dir = d_inode(dentry->d_parent); in omfs_add_link()
114 const char *name = dentry->d_name.name; in omfs_add_link()
115 int namelen = dentry->d_name.len; in omfs_add_link()
156 static int omfs_delete_entry(struct dentry *dentry) in omfs_delete_entry() argument
158 struct inode *dir = d_inode(dentry->d_parent); in omfs_delete_entry()
160 const char *name = dentry->d_name.name; in omfs_delete_entry()
161 int namelen = dentry->d_name.len; in omfs_delete_entry()
238 static int omfs_remove(struct inode *dir, struct dentry *dentry) in omfs_remove() argument
240 struct inode *inode = d_inode(dentry); in omfs_remove()
248 ret = omfs_delete_entry(dentry); in omfs_remove()
258 static int omfs_add_node(struct inode *dir, struct dentry *dentry, umode_t mode) in omfs_add_node() argument
270 err = omfs_add_link(dentry, inode); in omfs_add_node()
274 d_instantiate(dentry, inode); in omfs_add_node()
282 static int omfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in omfs_mkdir() argument
284 return omfs_add_node(dir, dentry, mode | S_IFDIR); in omfs_mkdir()
287 static int omfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, in omfs_create() argument
290 return omfs_add_node(dir, dentry, mode | S_IFREG); in omfs_create()
293 static struct dentry *omfs_lookup(struct inode *dir, struct dentry *dentry, in omfs_lookup() argument
299 if (dentry->d_name.len > OMFS_NAMELEN) in omfs_lookup()
302 bh = omfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len); in omfs_lookup()
311 d_add(dentry, inode); in omfs_lookup()
373 static int omfs_rename(struct inode *old_dir, struct dentry *old_dentry, in omfs_rename()
374 struct inode *new_dir, struct dentry *new_dentry) in omfs_rename()