diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index 706dbdc83b22..bf552e2ffb19 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -152,6 +152,10 @@ struct vnode { vn_pollevent((vp), (events)); \ } while (0) +#define VN_KNOTE(vp, b) \ + KNOTE(&vp->v_pollinfo.vpi_selinfo.si_note, (b)) + + /* * Vnode flags. */ diff --git a/sys/ufs/ufs/ufs_acl.c b/sys/ufs/ufs/ufs_acl.c index 18fc57490466..e5f79f10ef0f 100644 --- a/sys/ufs/ufs/ufs_acl.c +++ b/sys/ufs/ufs/ufs_acl.c @@ -53,9 +53,6 @@ #include #include -#define VN_KNOTE(vp, b) \ - KNOTE(&vp->v_pollinfo.vpi_selinfo.si_note, (b)) - #ifdef UFS_ACL /* diff --git a/sys/ufs/ufs/ufs_readwrite.c b/sys/ufs/ufs/ufs_readwrite.c index bc19b98a1d48..e226c960fd2c 100644 --- a/sys/ufs/ufs/ufs_readwrite.c +++ b/sys/ufs/ufs/ufs_readwrite.c @@ -50,9 +50,6 @@ #include #include -#define VN_KNOTE(vp, b) \ - KNOTE((struct klist *)&vp->v_pollinfo.vpi_selinfo.si_note, (b)) - /* * Vnode op for reading. */ diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 4b52d1e4d076..0c934e86b438 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -133,8 +133,6 @@ union _qcvt { tmp.val[_QUAD_LOWWORD] = (l); \ (q) = tmp.qcvt; \ } -#define VN_KNOTE(vp, b) \ - KNOTE(&vp->v_pollinfo.vpi_selinfo.si_note, (b)) /* * A virgin directory (no blushing please).