From 4014b558307253555f43f360be60f49ea39b7ceb Mon Sep 17 00:00:00 2001 From: attilio Date: Mon, 25 Feb 2008 18:45:57 +0000 Subject: Axe the 'thread' argument from VOP_ISLOCKED() and lockstatus() as it is always curthread. As KPI gets broken by this patch, manpages and __FreeBSD_version will be updated by further commits. Tested by: Andrea Barberio --- sys/kern/vfs_default.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/kern/vfs_default.c') diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index fe75ed1a..5422530 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -256,7 +256,6 @@ vop_stdlock(ap) struct vop_lock1_args /* { struct vnode *a_vp; int a_flags; - struct thread *a_td; char *file; int line; } */ *ap; @@ -274,7 +273,6 @@ vop_stdunlock(ap) struct vop_unlock_args /* { struct vnode *a_vp; int a_flags; - struct thread *a_td; } */ *ap; { struct vnode *vp = ap->a_vp; @@ -287,11 +285,10 @@ int vop_stdislocked(ap) struct vop_islocked_args /* { struct vnode *a_vp; - struct thread *a_td; } */ *ap; { - return (lockstatus(ap->a_vp->v_vnlock, ap->a_td)); + return (lockstatus(ap->a_vp->v_vnlock)); } /* -- cgit v1.1