Lines Matching refs:dentry

84 static char *__dentry_name(struct dentry *dentry, char *name)  in __dentry_name()  argument
86 char *p = dentry_path_raw(dentry, name, PATH_MAX); in __dentry_name()
90 root = dentry->d_sb->s_fs_info; in __dentry_name()
115 static char *dentry_name(struct dentry *dentry) in dentry_name() argument
121 return __dentry_name(dentry, name); in dentry_name()
126 struct dentry *dentry; in inode_name() local
129 dentry = d_find_alias(ino); in inode_name()
130 if (!dentry) in inode_name()
133 name = dentry_name(dentry); in inode_name()
135 dput(dentry); in inode_name()
193 static int hostfs_statfs(struct dentry *dentry, struct kstatfs *sf) in hostfs_statfs() argument
207 err = do_statfs(dentry->d_sb->s_fs_info, in hostfs_statfs()
257 static int hostfs_show_options(struct seq_file *seq, struct dentry *root) in hostfs_show_options()
287 name = dentry_name(file->f_path.dentry); in hostfs_readdir()
326 name = dentry_name(file->f_path.dentry); in hostfs_open()
566 static int hostfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, in hostfs_create() argument
580 name = dentry_name(dentry); in hostfs_create()
596 d_instantiate(dentry, inode); in hostfs_create()
605 static struct dentry *hostfs_lookup(struct inode *ino, struct dentry *dentry, in hostfs_lookup() argument
619 name = dentry_name(dentry); in hostfs_lookup()
633 d_add(dentry, inode); in hostfs_lookup()
642 static int hostfs_link(struct dentry *to, struct inode *ino, in hostfs_link()
643 struct dentry *from) in hostfs_link()
661 static int hostfs_unlink(struct inode *ino, struct dentry *dentry) in hostfs_unlink() argument
669 if ((file = dentry_name(dentry)) == NULL) in hostfs_unlink()
677 static int hostfs_symlink(struct inode *ino, struct dentry *dentry, in hostfs_symlink() argument
683 if ((file = dentry_name(dentry)) == NULL) in hostfs_symlink()
690 static int hostfs_mkdir(struct inode *ino, struct dentry *dentry, umode_t mode) in hostfs_mkdir() argument
695 if ((file = dentry_name(dentry)) == NULL) in hostfs_mkdir()
702 static int hostfs_rmdir(struct inode *ino, struct dentry *dentry) in hostfs_rmdir() argument
707 if ((file = dentry_name(dentry)) == NULL) in hostfs_rmdir()
714 static int hostfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) in hostfs_mknod() argument
727 name = dentry_name(dentry); in hostfs_mknod()
741 d_instantiate(dentry, inode); in hostfs_mknod()
752 static int hostfs_rename2(struct inode *old_dir, struct dentry *old_dentry, in hostfs_rename2()
753 struct inode *new_dir, struct dentry *new_dentry, in hostfs_rename2()
806 static int hostfs_setattr(struct dentry *dentry, struct iattr *attr) in hostfs_setattr() argument
808 struct inode *inode = d_inode(dentry); in hostfs_setattr()
857 name = dentry_name(dentry); in hostfs_setattr()
893 static void *hostfs_follow_link(struct dentry *dentry, struct nameidata *nd) in hostfs_follow_link() argument
897 char *path = dentry_name(dentry); in hostfs_follow_link()
917 static void hostfs_put_link(struct dentry *dentry, struct nameidata *nd, void *cookie) in hostfs_put_link() argument
987 static struct dentry *hostfs_read_sb(struct file_system_type *type, in hostfs_read_sb()