diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-02-08 22:37:15 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-02-08 22:37:15 +0000 |
commit | 09506e9ff83f7c5c59c4386d975e5bebaec96e1f (patch) | |
tree | 11e3e4e29f69c9e0cf2a7f59b5dec78e399e0bcd /sys/fs/coda/coda_vfsops.c | |
parent | e1db4e70b3e0f4dcd6006b5380fd6484833c54e5 (diff) | |
download | FreeBSD-src-09506e9ff83f7c5c59c4386d975e5bebaec96e1f.zip FreeBSD-src-09506e9ff83f7c5c59c4386d975e5bebaec96e1f.tar.gz |
Remove undefined coda excluded by #if 1 #else, which previously protected
vget() calls using inode numbers to query the root of /coda, which is not
needed since we now cache the root vnode with the mountpoint.
MFC after: 1 month
Diffstat (limited to 'sys/fs/coda/coda_vfsops.c')
-rw-r--r-- | sys/fs/coda/coda_vfsops.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/fs/coda/coda_vfsops.c b/sys/fs/coda/coda_vfsops.c index 06793e4..3b69944 100644 --- a/sys/fs/coda/coda_vfsops.c +++ b/sys/fs/coda/coda_vfsops.c @@ -291,12 +291,8 @@ coda_root(vfsp, flags, vpp, td) mi->mi_started = 1; /* On Mach, this is vref. On NetBSD, VOP_LOCK */ -#if 1 vref(*vpp); vn_lock(*vpp, LK_EXCLUSIVE); -#else - vget(*vpp, LK_EXCLUSIVE, td); -#endif MARK_INT_SAT(CODA_ROOT_STATS); return(0); } @@ -314,12 +310,8 @@ coda_root(vfsp, flags, vpp, td) coda_save(VTOC(mi->mi_rootvp)); *vpp = mi->mi_rootvp; -#if 1 vref(*vpp); vn_lock(*vpp, LK_EXCLUSIVE); -#else - vget(*vpp, LK_EXCLUSIVE, td); -#endif MARK_INT_SAT(CODA_ROOT_STATS); goto exit; @@ -334,12 +326,8 @@ coda_root(vfsp, flags, vpp, td) * will fail. */ *vpp = mi->mi_rootvp; -#if 1 vref(*vpp); vn_lock(*vpp, LK_EXCLUSIVE); -#else - vget(*vpp, LK_EXCLUSIVE, td); -#endif MARK_INT_FAIL(CODA_ROOT_STATS); error = 0; |