window-afsifs-20050617
[openafs.git] / src / WINNT / afsd / cm_vnodeops.c
index d031791..61ffcd2 100644 (file)
@@ -546,19 +546,20 @@ long cm_ApplyDir(cm_scache_t *scp, cm_DirFuncp_t funcp, void *parmp,
             }
 
 #ifdef AFSIFS
-                       lock_ObtainMutex(&scp->mx);
-                       if ((scp->flags & CM_SCACHEFLAG_BULKSTATTING) == 0
-                               && (scp->bulkStatProgress.QuadPart <= thyper.QuadPart))
-                               {
-                               scp->flags |= CM_SCACHEFLAG_BULKSTATTING;
-                               cm_TryBulkStat(scp, &thyper, userp, reqp);
-                               scp->flags &= ~CM_SCACHEFLAG_BULKSTATTING;
-                               scp->bulkStatProgress = thyper;
-                               }
-                       lock_ReleaseMutex(&scp->mx);
+            /* Why was this added for IFS? - jaltman 06/18/2006 */
+            lock_ObtainMutex(&scp->mx);
+            if ((scp->flags & CM_SCACHEFLAG_BULKSTATTING) == 0
+                 && (scp->bulkStatProgress.QuadPart <= thyper.QuadPart))
+            {
+                scp->flags |= CM_SCACHEFLAG_BULKSTATTING;
+                cm_TryBulkStat(scp, &thyper, userp, reqp);
+                scp->flags &= ~CM_SCACHEFLAG_BULKSTATTING;
+                scp->bulkStatProgress = thyper;
+            }
+            lock_ReleaseMutex(&scp->mx);
 #endif
 
-                       lock_ObtainMutex(&bufferp->mx);
+            lock_ObtainMutex(&bufferp->mx);
             bufferOffset = thyper;
 
             /* now get the data in the cache */