Lines Matching refs:dentry

49 static inline int nilfs_add_nondir(struct dentry *dentry, struct inode *inode)  in nilfs_add_nondir()  argument
51 int err = nilfs_add_link(dentry, inode); in nilfs_add_nondir()
53 d_instantiate(dentry, inode); in nilfs_add_nondir()
67 static struct dentry *
68 nilfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) in nilfs_lookup() argument
73 if (dentry->d_name.len > NILFS_NAME_LEN) in nilfs_lookup()
76 ino = nilfs_inode_by_name(dir, &dentry->d_name); in nilfs_lookup()
78 return d_splice_alias(inode, dentry); in nilfs_lookup()
89 static int nilfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, in nilfs_create() argument
106 err = nilfs_add_nondir(dentry, inode); in nilfs_create()
117 nilfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) in nilfs_mknod() argument
134 err = nilfs_add_nondir(dentry, inode); in nilfs_mknod()
144 static int nilfs_symlink(struct inode *dir, struct dentry *dentry, in nilfs_symlink() argument
175 err = nilfs_add_nondir(dentry, inode); in nilfs_symlink()
192 static int nilfs_link(struct dentry *old_dentry, struct inode *dir, in nilfs_link()
193 struct dentry *dentry) in nilfs_link() argument
207 err = nilfs_add_link(dentry, inode); in nilfs_link()
209 d_instantiate(dentry, inode); in nilfs_link()
220 static int nilfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in nilfs_mkdir() argument
247 err = nilfs_add_link(dentry, inode); in nilfs_mkdir()
252 d_instantiate(dentry, inode); in nilfs_mkdir()
274 static int nilfs_do_unlink(struct inode *dir, struct dentry *dentry) in nilfs_do_unlink() argument
282 de = nilfs_find_entry(dir, &dentry->d_name, &page); in nilfs_do_unlink()
286 inode = d_inode(dentry); in nilfs_do_unlink()
308 static int nilfs_unlink(struct inode *dir, struct dentry *dentry) in nilfs_unlink() argument
317 err = nilfs_do_unlink(dir, dentry); in nilfs_unlink()
321 nilfs_mark_inode_dirty(d_inode(dentry)); in nilfs_unlink()
329 static int nilfs_rmdir(struct inode *dir, struct dentry *dentry) in nilfs_rmdir() argument
331 struct inode *inode = d_inode(dentry); in nilfs_rmdir()
341 err = nilfs_do_unlink(dir, dentry); in nilfs_rmdir()
358 static int nilfs_rename(struct inode *old_dir, struct dentry *old_dentry, in nilfs_rename()
359 struct inode *new_dir, struct dentry *new_dentry) in nilfs_rename()
449 static struct dentry *nilfs_get_parent(struct dentry *child) in nilfs_get_parent()
469 static struct dentry *nilfs_get_dentry(struct super_block *sb, u64 cno, in nilfs_get_dentry()
494 static struct dentry *nilfs_fh_to_dentry(struct super_block *sb, struct fid *fh, in nilfs_fh_to_dentry()
508 static struct dentry *nilfs_fh_to_parent(struct super_block *sb, struct fid *fh, in nilfs_fh_to_parent()