Avoid locking overhead when snapshots are disabled.

This commit is contained in:
tegge 2006-05-05 19:58:36 +00:00
parent 65c476a3fd
commit 70578f430d

View File

@ -338,6 +338,7 @@ ffs_lock(ap)
struct thread *a_td;
} */ *ap;
{
#ifndef NO_FFS_SNAPSHOT
struct vnode *vp;
int flags;
struct lock *lkp;
@ -382,6 +383,9 @@ ffs_lock(ap)
result = VOP_LOCK_APV(&ufs_vnodeops, ap);
}
return (result);
#else
return (VOP_LOCK_APV(&ufs_vnodeops, ap));
#endif
}
/*