From: semarie Date: Sun, 27 Mar 2022 16:19:39 +0000 (+0000) Subject: sys/vnode.h cleanup for vnode_hold_list, vnode_free_list, struct freelst X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=266a9dced7ec29dd5ce53dfbd8d3c5faee1c4946;p=openbsd sys/vnode.h cleanup for vnode_hold_list, vnode_free_list, struct freelst vnode_hold_list and vnode_free_list aren't used outside kern/vfs_subr.c move `struct freelst` where used in kern/vfs_subr.c no intented behaviour changes. survived a release(8) build. ok millert@ --- diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 069a65d51e0..13c70890ccc 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.314 2022/01/25 04:04:40 gnezdo Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.315 2022/03/27 16:19:39 semarie Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -98,6 +98,7 @@ int suid_clear = 1; /* 1 => clear SUID / SGID on owner change */ LIST_NEXT(bp, b_vnbufs) = NOLIST; \ } +TAILQ_HEAD(freelst, vnode); struct freelst vnode_hold_list; /* list of vnodes referencing buffers */ struct freelst vnode_free_list; /* vnode free list */ diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index 0aa8eaddb68..f7dc8d8bc36 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vnode.h,v 1.163 2021/12/12 09:14:59 visa Exp $ */ +/* $OpenBSD: vnode.h,v 1.164 2022/03/27 16:19:39 semarie Exp $ */ /* $NetBSD: vnode.h,v 1.38 1996/02/29 20:59:05 cgd Exp $ */ /* @@ -243,10 +243,6 @@ extern int vttoif_tab[]; #define REVOKEALL 0x0001 /* vop_revoke: revoke all aliases */ -TAILQ_HEAD(freelst, vnode); -extern struct freelst vnode_hold_list; /* free vnodes referencing buffers */ -extern struct freelst vnode_free_list; /* vnode free list */ - #define VATTR_NULL(vap) vattr_null(vap) #define NULLVP ((struct vnode *)NULL) #define VN_KNOTE(vp, b) \