diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 2f46e170e0..54d222497f 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -3428,17 +3428,13 @@ DECL_PIOCTL(PFlushVolumeData) goto loop; } #ifdef AFS_DARWIN80_ENV - if (tvc->f.states & CDeadVnode) { - if (!(tvc->f.states & CBulkFetching)) { - ReleaseReadLock(&afs_xvcache); - afs_osi_Sleep(&tvc->f.states); - goto loop; + if (tvc->f.states & CDeadVnode) { + if (!(tvc->f.states & CBulkFetching)) { + ReleaseReadLock(&afs_xvcache); + afs_osi_Sleep(&tvc->f.states); + goto loop; + } } - } -#endif -#if defined(AFS_SGI_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_HPUX_ENV) || defined(AFS_LINUX20_ENV) - AFS_FAST_HOLD(tvc); -#elif defined(AFS_DARWIN80_ENV) vp = AFSTOV(tvc); if (vnode_get(vp)) continue;