Lines Matching refs:dentry

1081  * In those days, file_dentry() was needed to get the underlying fs dentry that
1086 static inline struct dentry *file_dentry(const struct file *file)
1088 struct dentry *dentry = file->f_path.dentry;
1090 WARN_ON_ONCE(d_inode(dentry) != file_inode(file));
1091 return dentry;
1218 struct dentry *s_root;
1853 struct dentry *, umode_t, bool);
1855 struct dentry *, umode_t);
1856 int vfs_mknod(struct mnt_idmap *, struct inode *, struct dentry *,
1859 struct dentry *, const char *);
1860 int vfs_link(struct dentry *, struct mnt_idmap *, struct inode *,
1861 struct dentry *, struct inode **);
1862 int vfs_rmdir(struct mnt_idmap *, struct inode *, struct dentry *);
1863 int vfs_unlink(struct mnt_idmap *, struct inode *, struct dentry *,
1880 struct dentry *old_dentry;
1883 struct dentry *new_dentry;
1891 struct inode *dir, struct dentry *dentry)
1893 return vfs_mknod(idmap, dir, dentry, S_IFCHR | WHITEOUT_MODE,
1904 int vfs_mkobj(struct dentry *, umode_t,
1905 int (*f)(struct dentry *, umode_t, void *),
2063 struct dentry * (*lookup) (struct inode *,struct dentry *, unsigned int);
2064 const char * (*get_link) (struct dentry *, struct inode *, struct delayed_call *);
2068 int (*readlink) (struct dentry *, char __user *,int);
2070 int (*create) (struct mnt_idmap *, struct inode *,struct dentry *,
2072 int (*link) (struct dentry *,struct inode *,struct dentry *);
2073 int (*unlink) (struct inode *,struct dentry *);
2074 int (*symlink) (struct mnt_idmap *, struct inode *,struct dentry *,
2076 int (*mkdir) (struct mnt_idmap *, struct inode *,struct dentry *,
2078 int (*rmdir) (struct inode *,struct dentry *);
2079 int (*mknod) (struct mnt_idmap *, struct inode *,struct dentry *,
2081 int (*rename) (struct mnt_idmap *, struct inode *, struct dentry *,
2082 struct inode *, struct dentry *, unsigned int);
2083 int (*setattr) (struct mnt_idmap *, struct dentry *, struct iattr *);
2086 ssize_t (*listxattr) (struct dentry *, char *, size_t);
2090 int (*atomic_open)(struct inode *, struct dentry *,
2095 struct posix_acl *(*get_acl)(struct mnt_idmap *, struct dentry *,
2097 int (*set_acl)(struct mnt_idmap *, struct dentry *,
2100 struct dentry *dentry, struct fileattr *fa);
2101 int (*fileattr_get)(struct dentry *dentry, struct fileattr *fa);
2166 int (*statfs) (struct dentry *, struct kstatfs *);
2170 int (*show_options)(struct seq_file *, struct dentry *);
2171 int (*show_devname)(struct seq_file *, struct dentry *);
2172 int (*show_path)(struct seq_file *, struct dentry *);
2173 int (*show_stats)(struct seq_file *, struct dentry *);
2478 struct dentry *(*mount) (struct file_system_type *, int,
2498 extern struct dentry *mount_bdev(struct file_system_type *fs_type,
2501 extern struct dentry *mount_single(struct file_system_type *fs_type,
2504 extern struct dentry *mount_nodev(struct file_system_type *fs_type,
2507 extern struct dentry *mount_subtree(struct vfsmount *mnt, const char *path);
2636 int do_truncate(struct mnt_idmap *, struct dentry *, loff_t start,
2649 return file_open_root(&(struct path){.mnt = mnt, .dentry = mnt->mnt_root},
2678 return d_inode(backing_file_user_path(f)->dentry);
2694 extern int finish_open(struct file *file, struct dentry *dentry,
2696 extern int finish_no_open(struct file *file, struct dentry *dentry);
2698 /* Helper for the simple case when original dentry is used */
2704 return finish_open(file, file->f_path.dentry, NULL);
2816 int notify_change(struct mnt_idmap *, struct dentry *,
2828 d_inode(path->dentry), mask);
2985 extern bool is_subdir(struct dentry *, struct dentry *);
3225 extern int page_readlink(struct dentry *, char __user *, int);
3226 extern const char *page_get_link(struct dentry *, struct inode *,
3246 const char *simple_get_link(struct dentry *, struct inode *,
3265 extern const char *vfs_get_link(struct dentry *, struct delayed_call *);
3266 extern int vfs_readlink(struct dentry *, char __user *, int);
3281 extern int simple_setattr(struct mnt_idmap *, struct dentry *,
3285 extern int simple_statfs(struct dentry *, struct kstatfs *);
3287 extern int simple_link(struct dentry *, struct inode *, struct dentry *);
3288 extern int simple_unlink(struct inode *, struct dentry *);
3289 extern int simple_rmdir(struct inode *, struct dentry *);
3290 void simple_rename_timestamp(struct inode *old_dir, struct dentry *old_dentry,
3291 struct inode *new_dir, struct dentry *new_dentry);
3292 extern int simple_rename_exchange(struct inode *old_dir, struct dentry *old_dentry,
3293 struct inode *new_dir, struct dentry *new_dentry);
3295 struct dentry *, struct inode *, struct dentry *,
3297 extern void simple_recursive_removal(struct dentry *,
3298 void (*callback)(struct dentry *));
3301 extern int simple_empty(struct dentry *);
3306 extern int always_delete_dentry(const struct dentry *);
3311 extern struct dentry *simple_lookup(struct inode *, struct dentry *, unsigned int flags);
3318 struct dentry *d_alloc_name(struct dentry *, const char *);
3335 int simple_offset_add(struct offset_ctx *octx, struct dentry *dentry);
3336 void simple_offset_remove(struct offset_ctx *octx, struct dentry *dentry);
3337 int simple_offset_empty(struct dentry *dentry);
3338 int simple_offset_rename(struct inode *old_dir, struct dentry *old_dentry,
3339 struct inode *new_dir, struct dentry *new_dentry);
3341 struct dentry *old_dentry,
3343 struct dentry *new_dentry);
3366 int setattr_prepare(struct mnt_idmap *, struct dentry *, struct iattr *);
3439 static inline ino_t parent_ino(struct dentry *dentry)
3447 spin_lock(&dentry->d_lock);
3448 res = dentry->d_parent->d_inode->i_ino;
3449 spin_unlock(&dentry->d_lock);
3572 file->f_path.dentry->d_inode->i_ino, DT_DIR);
3577 parent_ino(file->f_path.dentry), DT_DIR);