Lines Matching defs:dentry

38 static inline void __fuse_dentry_settime(struct dentry *entry, u64 time)
43 static inline u64 fuse_dentry_time(const struct dentry *entry)
54 static inline void __fuse_dentry_settime(struct dentry *dentry, u64 time)
56 ((union fuse_dentry *) dentry->d_fsdata)->time = time;
59 static inline u64 fuse_dentry_time(const struct dentry *entry)
65 static void fuse_dentry_settime(struct dentry *dentry, u64 time)
67 struct fuse_conn *fc = get_fuse_conn_super(dentry->d_sb);
73 if ((!delete && (dentry->d_flags & DCACHE_OP_DELETE)) ||
74 (delete && !(dentry->d_flags & DCACHE_OP_DELETE))) {
75 spin_lock(&dentry->d_lock);
77 dentry->d_flags &= ~DCACHE_OP_DELETE;
79 dentry->d_flags |= DCACHE_OP_DELETE;
80 spin_unlock(&dentry->d_lock);
83 __fuse_dentry_settime(dentry, time);
88 * time in jiffies until the dentry/attributes are valid is stored in
89 * dentry->d_fsdata and fuse_inode->i_time respectively.
93 * Calculate the time in jiffies until a dentry/attributes are valid
109 * Set dentry and possibly attribute timeouts from the lookup/mk*
112 void fuse_change_entry_timeout(struct dentry *entry, struct fuse_entry_out *o)
152 * This is called when a dentry is about to become negative and the
156 void fuse_invalidate_entry_cache(struct dentry *entry)
163 * dentry from the hash
165 static void fuse_invalidate_entry(struct dentry *entry)
187 * Check whether the dentry is still valid
189 * If the entry validity timeout has expired and the dentry is
191 * different inode, then let the VFS invalidate the dentry and redo
193 * then refresh the attributes, timeouts and mark the dentry valid.
195 static int fuse_dentry_revalidate(struct dentry *entry, unsigned int flags)
198 struct dentry *parent;
283 static int fuse_dentry_init(struct dentry *dentry)
285 dentry->d_fsdata = kzalloc(sizeof(union fuse_dentry),
288 return dentry->d_fsdata ? 0 : -ENOMEM;
290 static void fuse_dentry_release(struct dentry *dentry)
292 union fuse_dentry *fd = dentry->d_fsdata;
298 static int fuse_dentry_delete(const struct dentry *dentry)
300 return time_before64(fuse_dentry_time(dentry), get_jiffies_64());
304 * Create a fuse_mount object with a new superblock (with path->dentry
312 struct fuse_inode *mp_fi = get_fuse_inode(d_inode(path->dentry));
314 fsc = fs_context_for_submount(path->mnt->mnt_sb->s_type, path->dentry);
415 static struct dentry *fuse_lookup(struct inode *dir, struct dentry *entry,
421 struct dentry *newent;
464 static int get_security_context(struct dentry *entry, umode_t mode,
576 struct inode *dir, struct dentry *dentry,
579 struct fuse_conn *fc = get_fuse_conn_super(dentry->d_sb);
584 err = get_security_context(dentry, mode, &ext);
612 static int fuse_create_open(struct inode *dir, struct dentry *entry,
725 static int fuse_mknod(struct mnt_idmap *, struct inode *, struct dentry *,
727 static int fuse_atomic_open(struct inode *dir, struct dentry *entry,
733 struct dentry *res = NULL;
778 struct inode *dir, struct dentry *entry,
783 struct dentry *d;
848 struct dentry *entry, umode_t mode, dev_t rdev)
871 struct dentry *entry, umode_t mode, bool excl)
885 err = fuse_create_open(dir, file->f_path.dentry, file, file->f_flags, mode, FUSE_TMPFILE);
894 struct dentry *entry, umode_t mode)
916 struct dentry *entry, const char *link)
953 static void fuse_entry_unlinked(struct dentry *entry)
976 static int fuse_unlink(struct inode *dir, struct dentry *entry)
999 static int fuse_rmdir(struct inode *dir, struct dentry *entry)
1022 static int fuse_rename_common(struct inode *olddir, struct dentry *oldent,
1023 struct inode *newdir, struct dentry *newent,
1073 struct dentry *oldent, struct inode *newdir,
1074 struct dentry *newent, unsigned int flags)
1105 static int fuse_link(struct dentry *entry, struct inode *newdir,
1106 struct dentry *newent)
1353 struct dentry *dir;
1354 struct dentry *entry;
1603 static const char *fuse_get_link(struct dentry *dentry, struct inode *inode,
1615 return page_get_link(dentry, inode, callback);
1618 if (!dentry)
1871 int fuse_do_setattr(struct dentry *dentry, struct iattr *attr,
1874 struct inode *inode = d_inode(dentry);
1892 err = setattr_prepare(&nop_mnt_idmap, dentry, attr);
2039 static int fuse_setattr(struct mnt_idmap *idmap, struct dentry *entry,
2106 struct inode *inode = d_inode(path->dentry);