https://git.reactos.org/?p=reactos.git;a=commitdiff;h=36e18aab35049f5e4cb36…
commit 36e18aab35049f5e4cb36d0751993f9af40e27cd
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Wed Dec 2 12:14:49 2020 +0100
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Feb 3 09:41:22 2021 +0100
[NTOS:CC] Remove unused functions
---
ntoskrnl/cc/view.c | 59 ------------------------------------------
ntoskrnl/include/internal/cc.h | 15 -----------
2 files changed, 74 deletions(-)
diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c
index ddbe77e22af..a14635f2135 100644
--- a/ntoskrnl/cc/view.c
+++ b/ntoskrnl/cc/view.c
@@ -466,65 +466,6 @@ CcRosUnmarkDirtyVacb (
}
}
-NTSTATUS
-NTAPI
-CcRosMarkDirtyFile (
- PROS_SHARED_CACHE_MAP SharedCacheMap,
- LONGLONG FileOffset)
-{
- PROS_VACB Vacb;
-
- ASSERT(SharedCacheMap);
-
- DPRINT("CcRosMarkDirtyVacb(SharedCacheMap 0x%p, FileOffset %I64u)\n",
- SharedCacheMap, FileOffset);
-
- Vacb = CcRosLookupVacb(SharedCacheMap, FileOffset);
- if (Vacb == NULL)
- {
- KeBugCheck(CACHE_MANAGER);
- }
-
- CcRosReleaseVacb(SharedCacheMap, Vacb, Vacb->Valid, TRUE, FALSE);
-
- return STATUS_SUCCESS;
-}
-
-/*
- * Note: this is not the contrary function of
- * CcRosMapVacbInKernelSpace()
- */
-NTSTATUS
-NTAPI
-CcRosUnmapVacb (
- PROS_SHARED_CACHE_MAP SharedCacheMap,
- LONGLONG FileOffset,
- BOOLEAN NowDirty)
-{
- PROS_VACB Vacb;
-
- ASSERT(SharedCacheMap);
-
- DPRINT("CcRosUnmapVacb(SharedCacheMap 0x%p, FileOffset %I64u, NowDirty
%u)\n",
- SharedCacheMap, FileOffset, NowDirty);
-
- Vacb = CcRosLookupVacb(SharedCacheMap, FileOffset);
- if (Vacb == NULL)
- {
- return STATUS_UNSUCCESSFUL;
- }
-
- ASSERT(Vacb->MappedCount != 0);
- if (InterlockedDecrement((PLONG)&Vacb->MappedCount) == 0)
- {
- CcRosVacbDecRefCount(Vacb);
- }
-
- CcRosReleaseVacb(SharedCacheMap, Vacb, Vacb->Valid, NowDirty, FALSE);
-
- return STATUS_SUCCESS;
-}
-
static
BOOLEAN
CcRosFreeUnusedVacb (
diff --git a/ntoskrnl/include/internal/cc.h b/ntoskrnl/include/internal/cc.h
index 9e186a61d11..862a759ef7a 100644
--- a/ntoskrnl/include/internal/cc.h
+++ b/ntoskrnl/include/internal/cc.h
@@ -342,14 +342,6 @@ BOOLEAN
NTAPI
CcInitializeCacheManager(VOID);
-NTSTATUS
-NTAPI
-CcRosUnmapVacb(
- PROS_SHARED_CACHE_MAP SharedCacheMap,
- LONGLONG FileOffset,
- BOOLEAN NowDirty
-);
-
PROS_VACB
NTAPI
CcRosLookupVacb(
@@ -361,13 +353,6 @@ VOID
NTAPI
CcInitCacheZeroPage(VOID);
-NTSTATUS
-NTAPI
-CcRosMarkDirtyFile(
- PROS_SHARED_CACHE_MAP SharedCacheMap,
- LONGLONG FileOffset
-);
-
VOID
NTAPI
CcRosMarkDirtyVacb(