X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2FWINNT%2Fafsrdr%2Fkernel%2Flib%2FAFSExtentsSupport.cpp;h=60d0e505a7dea62d895c63d4586b3cc96e46c6cc;hp=74b328fa981caeb73124468c7f0d327e7fed1e70;hb=dc87e01c704d4cb16c26368597b383dc738d4d25;hpb=6c708d1415b27bf8f2804f3407e4fbe2f7bf1009 diff --git a/src/WINNT/afsrdr/kernel/lib/AFSExtentsSupport.cpp b/src/WINNT/afsrdr/kernel/lib/AFSExtentsSupport.cpp index 74b328f..60d0e50 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSExtentsSupport.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSExtentsSupport.cpp @@ -1197,29 +1197,6 @@ AFSProcessExtentsResult( IN AFSFcb *Fcb, // le = &pExtent->Lists[AFS_EXTENTS_LIST]; - /* - // - // Then the check the skip lists cursors - // - for (ULONG i = AFS_NUM_EXTENT_LISTS-1; i > AFS_EXTENTS_LIST; i--) - { - if (0 == (pFileExtents->FileOffset.LowPart & ExtentsMasks[i])) - { - // - // Three options: - // - empty list (pSkipEntries[i]->Flink == pSkipEntries[i]->Flink == fcb->lists[i] - // - We are the last on the list (pSkipEntries[i]->Flink == fcb->lists[i]) - // - We are not the last on the list. In that case we have to be strictly less than - // that extent. - if (pSkipEntries[i]->Flink != &Fcb->Specific.File.ExtentsLists[i]) { - - AFSExtent *otherExtent = ExtentFor(pSkipEntries[i]->Flink, i); - ASSERT(pFileExtents->FileOffset.QuadPart < otherExtent->FileOffset.QuadPart); - } - } - } - */ - // // setup pExtent if there is one // @@ -2853,6 +2830,7 @@ AFSFlushExtents( IN AFSFcb *Fcb, ntStatus); } + AFSLockForExtentsTrim( Fcb); bExtentsLocked = TRUE;