diff options
author | jake <jake@FreeBSD.org> | 2000-05-23 20:41:01 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2000-05-23 20:41:01 +0000 |
commit | d93fbc99166053b75c2eeb69b5cb603cfaf79ec0 (patch) | |
tree | a4f130be4544ce7cfe4afa8c93f996b871433cb8 /sys/sys/vnode.h | |
parent | e814d2a0db522b0f163eef55a56d05aa226951f3 (diff) | |
download | FreeBSD-src-d93fbc99166053b75c2eeb69b5cb603cfaf79ec0.zip FreeBSD-src-d93fbc99166053b75c2eeb69b5cb603cfaf79ec0.tar.gz |
Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct.
Suggested by: phk
Reviewed by: phk
Approved by: mdodd
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r-- | sys/sys/vnode.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index 4938dca..fa4b07c 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -71,7 +71,7 @@ enum vtagtype { * Each underlying filesystem allocates its own private area and hangs * it from v_data. If non-null, this area is freed in getnewvnode(). */ -TAILQ_HEAD(buflists, buf); +TAILQ_HEAD(buflists, struct buf); typedef int vop_t __P((void *)); struct namecache; @@ -92,11 +92,11 @@ struct vnode { u_long v_id; /* capability identifier */ struct mount *v_mount; /* ptr to vfs we are in */ vop_t **v_op; /* vnode operations vector */ - TAILQ_ENTRY(vnode) v_freelist; /* vnode freelist */ - LIST_ENTRY(vnode) v_mntvnodes; /* vnodes for mount point */ + TAILQ_ENTRY(struct vnode) v_freelist; /* vnode freelist */ + LIST_ENTRY(struct vnode) v_mntvnodes; /* vnodes for mount point */ struct buflists v_cleanblkhd; /* clean blocklist head */ struct buflists v_dirtyblkhd; /* dirty blocklist head */ - LIST_ENTRY(vnode) v_synclist; /* vnodes with dirty buffers */ + LIST_ENTRY(struct vnode) v_synclist; /* vnodes with dirty buffers */ long v_numoutput; /* num of writes in progress */ enum vtype v_type; /* vnode type */ union { @@ -104,7 +104,7 @@ struct vnode { struct socket *vu_socket; /* unix ipc (VSOCK) */ struct { struct specinfo *vu_specinfo; /* device (VCHR, VBLK) */ - SLIST_ENTRY(vnode) vu_specnext; + SLIST_ENTRY(struct vnode) vu_specnext; } vu_spec; struct fifoinfo *vu_fifoinfo; /* fifo (VFIFO) */ } v_un; @@ -118,8 +118,8 @@ struct vnode { struct lock *v_vnlock; /* used for non-locking fs's */ enum vtagtype v_tag; /* type of underlying data */ void *v_data; /* private data for fs */ - LIST_HEAD(, namecache) v_cache_src; /* Cache entries from us */ - TAILQ_HEAD(, namecache) v_cache_dst; /* Cache entries to us */ + LIST_HEAD(, struct namecache) v_cache_src; /* Cache entries from us */ + TAILQ_HEAD(, struct namecache) v_cache_dst; /* Cache entries to us */ struct vnode *v_dd; /* .. vnode */ u_long v_ddid; /* .. capability identifier */ struct { @@ -621,7 +621,7 @@ void vbusy __P((struct vnode *vp)); extern vop_t **default_vnodeop_p; extern vop_t **spec_vnodeop_p; -extern TAILQ_HEAD(tobefreelist, vnode) +extern TAILQ_HEAD(tobefreelist, struct vnode) vnode_tobefree_list; /* vnode free list */ #endif /* _KERNEL */ |