Lines Matching refs:dentry

23 static struct inode *get_inode(struct super_block *, struct dentry *);
38 struct dentry *proc_dentry;
51 static int is_pid(struct dentry *dentry) in is_pid() argument
56 sb = dentry->d_sb; in is_pid()
57 if (dentry->d_parent != sb->s_root) in is_pid()
60 for (i = 0; i < dentry->d_name.len; i++) { in is_pid()
61 if (!isdigit(dentry->d_name.name[i])) in is_pid()
67 static char *dentry_name(struct dentry *dentry, int extra) in dentry_name() argument
69 struct dentry *parent; in dentry_name()
75 parent = dentry; in dentry_name()
91 parent = dentry; in dentry_name()
111 static int file_removed(struct dentry *dentry, const char *file) in file_removed() argument
120 host_file = dentry_name(dentry, extra + strlen("/remove")); in file_removed()
141 static struct dentry *hppfs_lookup(struct inode *ino, struct dentry *dentry, in hppfs_lookup() argument
144 struct dentry *proc_dentry, *parent; in hppfs_lookup()
145 struct qstr *name = &dentry->d_name; in hppfs_lookup()
149 deleted = file_removed(dentry, NULL); in hppfs_lookup()
168 d_add(dentry, inode); in hppfs_lookup()
433 host_file = dentry_name(file->f_path.dentry, strlen("/rw")); in hppfs_open()
438 path.dentry = HPPFS_I(inode)->proc_dentry; in hppfs_open()
494 path.dentry = HPPFS_I(inode)->proc_dentry; in hppfs_dir_open()
548 struct dentry *dentry; member
557 if (file_removed(dirent->dentry, name)) in hppfs_filldir()
571 .dentry = file->f_path.dentry in hppfs_readdir()
588 static int hppfs_statfs(struct dentry *dentry, struct kstatfs *sf) in hppfs_statfs() argument
637 static int hppfs_readlink(struct dentry *dentry, char __user *buffer, in hppfs_readlink() argument
640 struct dentry *proc_dentry = HPPFS_I(d_inode(dentry))->proc_dentry; in hppfs_readlink()
645 static void *hppfs_follow_link(struct dentry *dentry, struct nameidata *nd) in hppfs_follow_link() argument
647 struct dentry *proc_dentry = HPPFS_I(d_inode(dentry))->proc_dentry; in hppfs_follow_link()
652 static void hppfs_put_link(struct dentry *dentry, struct nameidata *nd, in hppfs_put_link() argument
655 struct dentry *proc_dentry = HPPFS_I(d_inode(dentry))->proc_dentry; in hppfs_put_link()
671 static struct inode *get_inode(struct super_block *sb, struct dentry *dentry) in get_inode() argument
673 struct inode *proc_ino = d_inode(dentry); in get_inode()
677 dput(dentry); in get_inode()
681 if (d_is_dir(dentry)) { in get_inode()
684 } else if (d_is_symlink(dentry)) { in get_inode()
692 HPPFS_I(inode)->proc_dentry = dentry; in get_inode()
738 static struct dentry *hppfs_read_super(struct file_system_type *type, in hppfs_read_super()