mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
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
This commit is contained in:
parent
2433c4883e
commit
99a2317ed3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176117
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user