variable to enable per-BCB debugging

svn path=/trunk/; revision=17365
This commit is contained in:
Royce Mitchell III 2005-08-13 13:11:59 +00:00
parent ce468cd74a
commit 864eea72ca

View file

@ -13,6 +13,9 @@ typedef struct _BCB
LARGE_INTEGER FileSize; LARGE_INTEGER FileSize;
KSPIN_LOCK BcbLock; KSPIN_LOCK BcbLock;
ULONG RefCount; ULONG RefCount;
#if defined(DBG) || defined(KDBG)
BOOLEAN Trace; /* enable extra trace output for this BCB and it's cache segments */
#endif
} BCB, *PBCB; } BCB, *PBCB;
typedef struct _CACHE_SEGMENT typedef struct _CACHE_SEGMENT
@ -91,7 +94,7 @@ CcInitView(VOID);
NTSTATUS NTSTATUS
CcRosFreeCacheSegment( CcRosFreeCacheSegment(
PBCB, PBCB,
PCACHE_SEGMENT PCACHE_SEGMENT
); );
@ -105,14 +108,14 @@ VOID CcInit(VOID);
NTSTATUS NTSTATUS
CcRosUnmapCacheSegment( CcRosUnmapCacheSegment(
PBCB Bcb, PBCB Bcb,
ULONG FileOffset, ULONG FileOffset,
BOOLEAN NowDirty BOOLEAN NowDirty
); );
PCACHE_SEGMENT PCACHE_SEGMENT
CcRosLookupCacheSegment( CcRosLookupCacheSegment(
PBCB Bcb, PBCB Bcb,
ULONG FileOffset ULONG FileOffset
); );
@ -129,13 +132,13 @@ CcInitCacheZeroPage(VOID);
NTSTATUS NTSTATUS
CcRosMarkDirtyCacheSegment( CcRosMarkDirtyCacheSegment(
PBCB Bcb, PBCB Bcb,
ULONG FileOffset ULONG FileOffset
); );
NTSTATUS NTSTATUS
CcRosFlushDirtyPages( CcRosFlushDirtyPages(
ULONG Target, ULONG Target,
PULONG Count PULONG Count
); );
@ -157,7 +160,7 @@ CcRosReleaseCacheSegment(
BOOLEAN Mapped BOOLEAN Mapped
); );
NTSTATUS NTSTATUS
STDCALL STDCALL
CcRosRequestCacheSegment( CcRosRequestCacheSegment(
BCB* Bcb, BCB* Bcb,