Avoid locking overhead when snapshots are disabled.
This commit is contained in:
parent
65c476a3fd
commit
70578f430d
@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user