https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bd759473727d563f1cbe3…
commit bd759473727d563f1cbe3e31afb88f0dfffdd94b
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Thu Apr 18 08:14:41 2019 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Thu Apr 18 08:14:41 2019 +0200
[NTOSKRNL] Drop the no longer needed Dirty field
CORE-15954
---
ntoskrnl/cc/pin.c | 2 --
ntoskrnl/include/internal/cc.h | 1 -
2 files changed, 3 deletions(-)
diff --git a/ntoskrnl/cc/pin.c b/ntoskrnl/cc/pin.c
index 044458f7b4..b839e71daf 100644
--- a/ntoskrnl/cc/pin.c
+++ b/ntoskrnl/cc/pin.c
@@ -216,7 +216,6 @@ CcpGetAppropriateBcb(
iBcb->PFCB.MappedLength = Length;
iBcb->PFCB.MappedFileOffset = *FileOffset;
iBcb->Vacb = Vacb;
- iBcb->Dirty = FALSE;
iBcb->PinCount = 0;
iBcb->RefCount = 1;
ExInitializeResourceLite(&iBcb->Lock);
@@ -579,7 +578,6 @@ CcSetDirtyPinnedData (
CCTRACE(CC_API_DEBUG, "Bcb=%p Lsn=%p\n",
Bcb, Lsn);
- iBcb->Dirty = TRUE;
if (!iBcb->Vacb->Dirty)
{
CcRosMarkDirtyVacb(iBcb->Vacb);
diff --git a/ntoskrnl/include/internal/cc.h b/ntoskrnl/include/internal/cc.h
index 332ad524c4..42b24e2572 100644
--- a/ntoskrnl/include/internal/cc.h
+++ b/ntoskrnl/include/internal/cc.h
@@ -233,7 +233,6 @@ typedef struct _INTERNAL_BCB
ERESOURCE Lock;
PUBLIC_BCB PFCB;
PROS_VACB Vacb;
- BOOLEAN Dirty;
ULONG PinCount;
CSHORT RefCount; /* (At offset 0x34 on WinNT4) */
LIST_ENTRY BcbEntry;