diff options
-rw-r--r-- | sys/ufs/ffs/ffs_vnops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c index 79e4e7a..91d2c01 100644 --- a/sys/ufs/ffs/ffs_vnops.c +++ b/sys/ufs/ffs/ffs_vnops.c @@ -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 } /* |