Lines Matching refs:dentry
680 struct dentry *f_dentry;
874 struct dentry *s_root;
961 extern int vfs_create(struct inode *, struct dentry *, int, struct nameidata *);
962 extern int vfs_mkdir(struct inode *, struct dentry *, int);
963 extern int vfs_mknod(struct inode *, struct dentry *, int, dev_t);
964 extern int vfs_symlink(struct inode *, struct dentry *, const char *, int);
965 extern int vfs_link(struct dentry *, struct inode *, struct dentry *);
966 extern int vfs_rmdir(struct inode *, struct dentry *);
967 extern int vfs_unlink(struct inode *, struct dentry *);
968 extern int vfs_rename(struct inode *, struct dentry *, struct inode *, struct dentry *);
971 * VFS dentry helper functions.
973 extern void dentry_unhash(struct dentry *dentry);
1070 int (*fsync) (struct file *, struct dentry *, int datasync);
1087 int (*create) (struct inode *,struct dentry *,int, struct nameidata *);
1088 struct dentry * (*lookup) (struct inode *,struct dentry *, struct nameidata *);
1089 int (*link) (struct dentry *,struct inode *,struct dentry *);
1090 int (*unlink) (struct inode *,struct dentry *);
1091 int (*symlink) (struct inode *,struct dentry *,const char *);
1092 int (*mkdir) (struct inode *,struct dentry *,int);
1093 int (*rmdir) (struct inode *,struct dentry *);
1094 int (*mknod) (struct inode *,struct dentry *,int,dev_t);
1095 int (*rename) (struct inode *, struct dentry *,
1096 struct inode *, struct dentry *);
1097 int (*readlink) (struct dentry *, char __user *,int);
1098 void * (*follow_link) (struct dentry *, struct nameidata *);
1099 void (*put_link) (struct dentry *, struct nameidata *, void *);
1102 int (*setattr) (struct dentry *, struct iattr *);
1103 int (*getattr) (struct vfsmount *mnt, struct dentry *, struct kstat *);
1104 int (*setxattr) (struct dentry *, const char *,const void *,size_t,int);
1105 ssize_t (*getxattr) (struct dentry *, const char *, void *, size_t);
1106 ssize_t (*listxattr) (struct dentry *, char *, size_t);
1107 int (*removexattr) (struct dentry *, const char *);
1140 int (*statfs) (struct dentry *, struct kstatfs *);
1188 extern void touch_atime(struct vfsmount *mnt, struct dentry *dentry);
1199 * @decode_fh: decode a file handle fragment and return a &struct dentry
1200 * @encode_fh: encode a file handle fragment from a dentry
1203 * @get_dentry: find a dentry for the inode given a file handle sub-fragment
1224 * In some situations, nfsd needs to get a dentry which is connected into a
1227 * if the dentry is acceptable. As there can be multiple dentrys for a
1235 * @context). It should return a &struct dentry which refers to the same
1245 * file refered to by the &struct dentry @de. If the @connectable flag is
1267 * the identified inode and return a dentry for that inode. Any suitable
1268 * dentry can be returned including, if necessary, a new dentry created with
1270 * following the d_alias links. If a new dentry was created using
1271 * d_alloc_root, DCACHE_NFSD_DISCONNECTED should be set, and the dentry
1284 struct dentry *(*decode_fh)(struct super_block *sb, __u32 *fh, int fh_len, int fh_type,
1285 int (*acceptable)(void *context, struct dentry *de),
1287 int (*encode_fh)(struct dentry *de, __u32 *fh, int *max_len,
1291 int (*get_name)(struct dentry *parent, char *name,
1292 struct dentry *child);
1293 struct dentry * (*get_parent)(struct dentry *child);
1294 struct dentry * (*get_dentry)(struct super_block *sb, void *inump);
1297 struct dentry * (*find_exported_dentry)(
1299 int (*acceptable)(void *context, struct dentry *de),
1305 extern struct dentry *
1307 int (*acceptable)(void *context, struct dentry *de),
1367 extern struct vfsmount *copy_tree(struct vfsmount *, struct dentry *, int);
1368 extern void mnt_set_mountpoint(struct vfsmount *, struct dentry *,
1371 extern int vfs_statfs(struct dentry *, struct kstatfs *);
1421 extern int do_truncate(struct dentry *, loff_t start, unsigned int time_attrs,
1426 extern struct file * dentry_open(struct dentry *, struct vfsmount *, int);
1550 extern int notify_change(struct dentry *, struct iattr *);
1575 extern int is_subdir(struct dentry *, struct dentry *);
1576 extern ino_t find_inode_number(struct dentry *, struct qstr *);
1620 extern int remove_suid(struct dentry *);
1757 extern int vfs_readlink(struct dentry *, char __user *, int, const char *);
1759 extern int page_readlink(struct dentry *, char __user *, int);
1760 extern void *page_follow_link_light(struct dentry *, struct nameidata *);
1761 extern void page_put_link(struct dentry *, struct nameidata *, void *);
1766 extern int generic_readlink(struct dentry *, char __user *, int);
1768 extern int vfs_getattr(struct vfsmount *, struct dentry *, struct kstat *);
1793 extern int simple_getattr(struct vfsmount *, struct dentry *, struct kstat *);
1794 extern int simple_statfs(struct dentry *, struct kstatfs *);
1795 extern int simple_link(struct dentry *, struct inode *, struct dentry *);
1796 extern int simple_unlink(struct inode *, struct dentry *);
1797 extern int simple_rmdir(struct inode *, struct dentry *);
1798 extern int simple_rename(struct inode *, struct dentry *, struct inode *, struct dentry *);
1799 extern int simple_sync_file(struct file *, struct dentry *, int);
1800 extern int simple_empty(struct dentry *);
1807 extern struct dentry *simple_lookup(struct inode *, struct dentry *, struct nameidata *);
1812 struct dentry *d_alloc_name(struct dentry *, const char *);
1831 static inline ino_t parent_ino(struct dentry *dentry)
1835 spin_lock(&dentry->d_lock);
1836 res = dentry->d_parent->d_inode->i_ino;
1837 spin_unlock(&dentry->d_lock);