diff options
author | tegge <tegge@FreeBSD.org> | 2006-05-05 19:58:36 +0000 |
---|---|---|
committer | tegge <tegge@FreeBSD.org> | 2006-05-05 19:58:36 +0000 |
commit | 70578f430db0cf7d896e18a5c717a092b861b326 (patch) | |
tree | a9bbc3bda80282c27366a3e42de1bff3ca7cb13c /sys | |
parent | 65c476a3fd46408c8280da6a36c7b327907ebfba (diff) | |
download | FreeBSD-src-70578f430db0cf7d896e18a5c717a092b861b326.zip FreeBSD-src-70578f430db0cf7d896e18a5c717a092b861b326.tar.gz |
Avoid locking overhead when snapshots are disabled.
Diffstat (limited to 'sys')
-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 } /* |