summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_vnops.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2007-05-18 13:02:13 +0000
committerkib <kib@FreeBSD.org>2007-05-18 13:02:13 +0000
commit162fa8dc6d0f4fe3538d66df083f7a92e01928b3 (patch)
tree68944780ddefdcbd79422bbaa42ca5371e635180 /sys/kern/vfs_vnops.c
parentef91577059eef3218a7be70aaa4f40f9461c1557 (diff)
downloadFreeBSD-src-162fa8dc6d0f4fe3538d66df083f7a92e01928b3.zip
FreeBSD-src-162fa8dc6d0f4fe3538d66df083f7a92e01928b3.tar.gz
Since renaming of vop_lock to _vop_lock, pre- and post-condition
function calls are no more generated for vop_lock. Rename _vop_lock to vop_lock1 to satisfy tools/vnode_if.awk assumption about vop naming conventions. This restores pre/post-condition calls.
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r--sys/kern/vfs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 64c0a4e..c0f179c 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -820,7 +820,7 @@ _vn_lock(struct vnode *vp, int flags, struct thread *td, char *file, int line)
* lockmgr drops interlock before it will return for
* any reason. So force the code above to relock it.
*/
- error = _VOP_LOCK(vp, flags | LK_INTERLOCK, td, file, line);
+ error = VOP_LOCK1(vp, flags | LK_INTERLOCK, td, file, line);
flags &= ~LK_INTERLOCK;
KASSERT((flags & LK_RETRY) == 0 || error == 0,
("LK_RETRY set with incompatible flags %d\n", flags));
OpenPOWER on IntegriCloud