Lines Matching refs:dentry

1210 static inline struct dentry *file_dentry(const struct file *file)  in file_dentry()
1212 struct dentry *dentry = file->f_path.dentry; in file_dentry() local
1214 if (unlikely(dentry->d_flags & DCACHE_OP_REAL)) in file_dentry()
1215 return dentry->d_op->d_real(dentry, file_inode(file)); in file_dentry()
1217 return dentry; in file_dentry()
1300 struct dentry *s_root;
1515 extern int vfs_create(struct inode *, struct dentry *, umode_t, bool);
1516 extern int vfs_mkdir(struct inode *, struct dentry *, umode_t);
1517 extern int vfs_mknod(struct inode *, struct dentry *, umode_t, dev_t);
1518 extern int vfs_symlink(struct inode *, struct dentry *, const char *);
1519 extern int vfs_link(struct dentry *, struct inode *, struct dentry *, struct inode **);
1520 extern int vfs_rmdir(struct inode *, struct dentry *);
1521 extern int vfs_unlink(struct inode *, struct dentry *, struct inode **);
1522 extern int vfs_rename(struct inode *, struct dentry *, struct inode *, struct dentry *, struct inod…
1523 extern int vfs_whiteout(struct inode *, struct dentry *);
1528 extern void dentry_unhash(struct dentry *dentry);
1645 struct dentry * (*lookup) (struct inode *,struct dentry *, unsigned int);
1646 const char * (*follow_link) (struct dentry *, void **);
1650 int (*readlink) (struct dentry *, char __user *,int);
1653 int (*create) (struct inode *,struct dentry *, umode_t, bool);
1654 int (*link) (struct dentry *,struct inode *,struct dentry *);
1655 int (*unlink) (struct inode *,struct dentry *);
1656 int (*symlink) (struct inode *,struct dentry *,const char *);
1657 int (*mkdir) (struct inode *,struct dentry *,umode_t);
1658 int (*rmdir) (struct inode *,struct dentry *);
1659 int (*mknod) (struct inode *,struct dentry *,umode_t,dev_t);
1660 int (*rename) (struct inode *, struct dentry *,
1661 struct inode *, struct dentry *);
1662 int (*rename2) (struct inode *, struct dentry *,
1663 struct inode *, struct dentry *, unsigned int);
1664 int (*setattr) (struct dentry *, struct iattr *);
1665 int (*getattr) (struct vfsmount *mnt, struct dentry *, struct kstat *);
1666 int (*setxattr) (struct dentry *, const char *,const void *,size_t,int);
1667 ssize_t (*getxattr) (struct dentry *, const char *, void *, size_t);
1668 ssize_t (*listxattr) (struct dentry *, char *, size_t);
1669 int (*removexattr) (struct dentry *, const char *);
1673 int (*atomic_open)(struct inode *, struct dentry *,
1676 int (*tmpfile) (struct inode *, struct dentry *, umode_t);
1708 int (*statfs) (struct dentry *, struct kstatfs *);
1712 int (*show_options)(struct seq_file *, struct dentry *);
1713 int (*show_devname)(struct seq_file *, struct dentry *);
1714 int (*show_path)(struct seq_file *, struct dentry *);
1715 int (*show_stats)(struct seq_file *, struct dentry *);
1942 struct dentry *(*mount) (struct file_system_type *, int,
1961 extern struct dentry *mount_ns(struct file_system_type *fs_type, int flags,
1963 extern struct dentry *mount_bdev(struct file_system_type *fs_type,
1966 extern struct dentry *mount_single(struct file_system_type *fs_type,
1969 extern struct dentry *mount_nodev(struct file_system_type *fs_type,
1972 extern struct dentry *mount_subtree(struct vfsmount *mnt, const char *path);
1986 extern struct dentry *mount_pseudo(struct file_system_type *, char *,
2221 extern int do_truncate(struct dentry *, loff_t start, unsigned int time_attrs,
2229 extern struct file *file_open_root(struct dentry *, struct vfsmount *,
2243 extern int finish_open(struct file *file, struct dentry *dentry,
2246 extern int finish_no_open(struct file *file, struct dentry *dentry);
2446 extern int notify_change(struct dentry *, struct iattr *, struct inode **);
2545 extern int is_subdir(struct dentry *, struct dentry *);
2600 extern int should_remove_suid(struct dentry *);
2602 extern int dentry_needs_remove_privs(struct dentry *dentry);
2605 return dentry_needs_remove_privs(file->f_path.dentry); in file_needs_remove_privs()
2748 extern int page_readlink(struct dentry *, char __user *, int);
2749 extern const char *page_follow_link_light(struct dentry *, void **);
2757 extern int generic_readlink(struct dentry *, char __user *, int);
2767 const char *simple_follow_link(struct dentry *, void **);
2802 extern int simple_setattr(struct dentry *, struct iattr *);
2803 extern int simple_getattr(struct vfsmount *, struct dentry *, struct kstat *);
2804 extern int simple_statfs(struct dentry *, struct kstatfs *);
2806 extern int simple_link(struct dentry *, struct inode *, struct dentry *);
2807 extern int simple_unlink(struct inode *, struct dentry *);
2808 extern int simple_rmdir(struct inode *, struct dentry *);
2809 extern int simple_rename(struct inode *, struct dentry *, struct inode *, struct dentry *);
2811 extern int simple_empty(struct dentry *);
2819 extern int always_delete_dentry(const struct dentry *);
2824 extern struct dentry *simple_lookup(struct inode *, struct dentry *, unsigned int flags);
2831 struct dentry *d_alloc_name(struct dentry *, const char *);
2860 extern int generic_show_options(struct seq_file *m, struct dentry *root);
2879 static inline ino_t parent_ino(struct dentry *dentry) in parent_ino() argument
2887 spin_lock(&dentry->d_lock); in parent_ino()
2888 res = dentry->d_parent->d_inode->i_ino; in parent_ino()
2889 spin_unlock(&dentry->d_lock); in parent_ino()
3009 file->f_path.dentry->d_inode->i_ino, DT_DIR) == 0; in dir_emit_dot()
3014 parent_ino(file->f_path.dentry), DT_DIR) == 0; in dir_emit_dotdot()