Lines Matching refs:vp
141 #define VTOFUD(vp) \
142 ((struct fuse_vnode_data *)((vp)->v_data))
143 #define VTOI(vp) (VTOFUD(vp)->nid)
145 fuse_vnode_attr_cache_valid(struct vnode *vp)
150 return (bintime_cmp(&(VTOFUD(vp)->attr_cache_timeout), &now, >));
154 VTOVA(struct vnode *vp)
156 if (fuse_vnode_attr_cache_valid(vp))
157 return &(VTOFUD(vp)->cached_attrs);
163 fuse_vnode_clear_attr_cache(struct vnode *vp)
165 bintime_clear(&VTOFUD(vp)->attr_cache_timeout);
174 #define VTOILLU(vp) ((uint64_t)(VTOFUD(vp) ? VTOI(vp) : 0))
181 int fuse_vnode_cmp(struct vnode *vp, void *nidp);
184 fuse_vnode_setparent(struct vnode *vp, struct vnode *dvp)
186 if (dvp != NULL && vp->v_type == VDIR) {
188 VTOFUD(vp)->parent_nid = VTOI(dvp);
189 VTOFUD(vp)->flag |= FN_PARENT_NID;
191 VTOFUD(vp)->flag &= ~FN_PARENT_NID;
195 int fuse_vnode_size(struct vnode *vp, off_t *filesize, struct ucred *cred,
198 void fuse_vnode_destroy(struct vnode *vp);
204 void fuse_vnode_open(struct vnode *vp, int32_t fuse_open_flags,
207 int fuse_vnode_savesize(struct vnode *vp, struct ucred *cred, pid_t pid);
209 int fuse_vnode_setsize(struct vnode *vp, off_t newsize, bool from_server);
211 void fuse_vnode_undirty_cached_timestamps(struct vnode *vp, bool atime);
213 void fuse_vnode_update(struct vnode *vp, int flags);