summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_default.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2008-02-25 18:45:57 +0000
committerattilio <attilio@FreeBSD.org>2008-02-25 18:45:57 +0000
commit4014b558307253555f43f360be60f49ea39b7ceb (patch)
treed455fa541ca0d9b761f28e9c67c92fd959e44b2c /sys/kern/vfs_default.c
parent49cb35343eeaa02f4e480228eb7148a3305d3b70 (diff)
downloadFreeBSD-src-4014b558307253555f43f360be60f49ea39b7ceb.zip
FreeBSD-src-4014b558307253555f43f360be60f49ea39b7ceb.tar.gz
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 <insomniac at slackware dot it>
Diffstat (limited to 'sys/kern/vfs_default.c')
-rw-r--r--sys/kern/vfs_default.c5
1 files changed, 1 insertions, 4 deletions
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));
}
/*
OpenPOWER on IntegriCloud