#include "cc.h"
Go to the source code of this file.
Defines | |
#define | BugCheckFileId (CACHE_BUG_CHECK_CACHESUB) |
#define | me 0x00000002 |
#define | RetryError(STS) (((STS) == STATUS_VERIFY_REQUIRED) || ((STS) == STATUS_FILE_LOCK_CONFLICT)) |
Functions | |
BOOLEAN | CcFindBcb (IN PSHARED_CACHE_MAP SharedCacheMap, IN PLARGE_INTEGER FileOffset, IN OUT PLARGE_INTEGER BeyondLastByte, OUT PBCB *Bcb) |
PBCB | CcAllocateInitializeBcb (IN OUT PSHARED_CACHE_MAP SharedCacheMap OPTIONAL, IN OUT PBCB AfterBcb, IN PLARGE_INTEGER FileOffset, IN PLARGE_INTEGER Length) |
NTSTATUS | CcSetValidData (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER ValidDataLength) |
BOOLEAN | CcAcquireByteRangeForWrite (IN PSHARED_CACHE_MAP SharedCacheMap, IN PLARGE_INTEGER TargetOffset OPTIONAL, IN ULONG TargetLength, OUT PLARGE_INTEGER FileOffset, OUT PULONG Length, OUT PBCB *FirstBcb) |
VOID | CcReleaseByteRangeFromWrite (IN PSHARED_CACHE_MAP SharedCacheMap, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN PBCB FirstBcb, IN BOOLEAN VerifyRequired) |
PBITMAP_RANGE | CcFindBitmapRangeToDirty (IN PMBCB Mbcb, IN LONGLONG Page, IN PULONG *FreePageForSetting) |
PBITMAP_RANGE | CcFindBitmapRangeToClean (IN PMBCB Mbcb, IN LONGLONG Page) |
BOOLEAN | CcLogError (IN PDEVICE_OBJECT Device, IN NTSTATUS Error, IN NTSTATUS DeviceError, IN PUNICODE_STRING FileName) |
BOOLEAN | CcPinFileData (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN BOOLEAN ReadOnly, IN BOOLEAN WriteOnly, IN ULONG Flags, OUT PBCB *Bcb, OUT PVOID *BaseAddress, OUT PLARGE_INTEGER BeyondLastByte) |
VOID FASTCALL | CcUnpinFileData (IN OUT PBCB Bcb, IN BOOLEAN ReadOnly, IN UNMAP_ACTIONS UnmapAction) |
VOID | CcSetReadAheadGranularity (IN PFILE_OBJECT FileObject, IN ULONG Granularity) |
VOID | CcScheduleReadAhead (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length) |
VOID FASTCALL | CcPerformReadAhead (IN PFILE_OBJECT FileObject) |
VOID | CcSetDirtyInMask (IN PSHARED_CACHE_MAP SharedCacheMap, IN PLARGE_INTEGER FileOffset, IN ULONG Length) |
VOID | CcSetDirtyPinnedData (IN PVOID BcbVoid, IN PLARGE_INTEGER Lsn OPTIONAL) |
VOID FASTCALL | CcWriteBehind (IN PSHARED_CACHE_MAP SharedCacheMap, IN PIO_STATUS_BLOCK IoStatus) |
LARGE_INTEGER | CcGetFlushedValidData (IN PSECTION_OBJECT_POINTERS SectionObjectPointer, IN BOOLEAN CcInternalCaller) |
VOID | CcFlushCache (IN PSECTION_OBJECT_POINTERS SectionObjectPointer, IN PLARGE_INTEGER FileOffset OPTIONAL, IN ULONG Length, OUT PIO_STATUS_BLOCK IoStatus OPTIONAL) |
PVOID | CcRemapBcb (IN PVOID Bcb) |
VOID | CcRepinBcb (IN PVOID Bcb) |
VOID | CcUnpinRepinnedBcb (IN PVOID Bcb, IN BOOLEAN WriteThrough, OUT PIO_STATUS_BLOCK IoStatus) |
VOID FASTCALL | CcDeallocateBcb (IN PBCB Bcb) |
BOOLEAN | CcMapAndRead (IN PSHARED_CACHE_MAP SharedCacheMap, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN ULONG ZeroFlags, IN BOOLEAN Wait, IN PVOID BaseAddress) |
VOID | CcFreeActiveVacb (IN PSHARED_CACHE_MAP SharedCacheMap, IN PVACB ActiveVacb OPTIONAL, IN ULONG ActivePage, IN ULONG PageIsDirty) |
VOID | CcMapAndCopy (IN PSHARED_CACHE_MAP SharedCacheMap, IN PVOID UserBuffer, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN ULONG ZeroFlags, IN BOOLEAN WriteThrough) |
Variables | |
ULONG | CcMaxDirtyWrite = 0x10000 |
|
Definition at line 27 of file cachesub.c. |
|
|
Definition at line 39 of file cachesub.c. Referenced by CcFlushCache(), CcUnpinRepinnedBcb(), and CcWriteBehind(). |
|
Definition at line 2861 of file cachesub.c. References ASSERT, _BITMAP_RANGE::BasePage, _BCB::BcbLinks, _BCB::BeyondLastByte, _BITMAP_RANGE::Bitmap, _MBCB::BitmapRanges, BooleanFlagOn, _BCB::ByteLength, CACHE_NTC_BCB, CcAcquireMasterLockAtDpcLevel, CcCleanSharedCacheMapList, CcExceptionFilter(), CcFindBcb(), CcFindBitmapRangeToClean(), CcPagesYetToWrite, CcReleaseMasterLockFromDpcLevel, CcTotalDirtyPages, CcUnpinFileData(), DebugTrace, DebugTrace2, _BCB::Dirty, _BITMAP_RANGE::DirtyPages, _MBCB::DirtyPages, DISABLE_WRITE_BEHIND, ExAcquireResourceExclusive, FALSE, _BCB::FileOffset, _BITMAP_RANGE::FirstDirtyPage, FlagOn, _BITMAP_RANGE::LastDirtyPage, _BITMAP_RANGE::Links, MAX_WRITE_BEHIND, MBCB_BITMAP_BLOCK_SIZE, me, MODIFIED_WRITE_DISABLED, _BCB::NodeTypeCode, NULL, PAGE_SHIFT, PAGE_SIZE, _MBCB::PagesToWrite, _BCB::PinCount, _BCB::Resource, _MBCB::ResumeWritePage, SET_CLEAN, TRUE, UNPIN, and VACB_SIZE_OF_FIRST_LEVEL. Referenced by CcFlushCache().
|
|
Definition at line 5541 of file cachesub.c. References ASSERT, _BCB::BcbLinks, _LAZY_WRITER::BcbZone, _BCB::BeyondLastByte, _BCB::ByteLength, CACHE_NTC_BCB, CcAcquireVacbLockAtDpcLevel, CcBcbSpinLock, CcBugCheck, CcFindBcb(), CcLockVacbLevel, CcReleaseVacbLockFromDpcLevel, DISABLE_WRITE_BEHIND, ExAllocateFromZone, ExAllocatePoolWithTag, ExDisableResourceBoost, ExExtendZone(), ExInitializeResource, _BCB::FileOffset, _ERESOURCE::Flag, FlagOn, LazyWriter, MmLargeSystem, MmQuerySystemSize(), _BCB::NodeIsInZone, _BCB::NodeTypeCode, NonPagedPool, NT_SUCCESS, NULL, PAGE_SIZE, _BCB::PinCount, _BCB::Resource, ResourceNeverExclusive, SetFlag, _BCB::SharedCacheMap, TRUE, and VACB_SIZE_OF_FIRST_LEVEL. Referenced by CcPinFileData(), and CcSetDirtyInMask().
|
|
Definition at line 5694 of file cachesub.c. References _LAZY_WRITER::BcbZone, CACHE_NTC_BCB, CcBcbSpinLock, ExDeleteResource, ExFreePool(), ExFreeToZone, and LazyWriter. Referenced by CcDeleteMbcb(), CcDeleteSharedCacheMap(), and CcUnpinFileData().
|
|
Definition at line 5314 of file cachesub.c. References ASSERT, BCB, _BCB::BcbLinks, _BCB::BeyondLastByte, CACHE_NTC_BCB, DebugTrace, DebugTrace2, FALSE, _BCB::FileOffset, GetBcbListHead, me, _BCB::NodeTypeCode, SIZE_PER_BCB_LIST, and TRUE. Referenced by CcAcquireByteRangeForWrite(), CcAllocateInitializeBcb(), and CcPinFileData().
|
|
Definition at line 2157 of file cachesub.c. References ASSERT, _BITMAP_RANGE::BasePage, _BITMAP_RANGE::DirtyPages, _BITMAP_RANGE::LastDirtyPage, _BITMAP_RANGE::Links, and TRUE. Referenced by CcAcquireByteRangeForWrite(), and CcGetFlushedValidData().
|
|
Definition at line 1996 of file cachesub.c. References ASSERT, _BITMAP_RANGE::BasePage, _BITMAP_RANGE::Bitmap, BITMAP_RANGE, _BITMAP_RANGE::DirtyPages, ExAllocatePoolWithTag, _BITMAP_RANGE::FirstDirtyPage, _BITMAP_RANGE::LastDirtyPage, _BITMAP_RANGE::Links, MBCB_BITMAP_BLOCK_SIZE, NonPagedPool, and NULL. Referenced by CcSetDirtyInMask().
|
|
Definition at line 4411 of file cachesub.c. References _SHARED_CACHE_MAP::ActivePage, _SHARED_CACHE_MAP::ActiveVacb, CC_REQUEUE, CcAcquireByteRangeForWrite(), CcAcquireMasterLock, CcDecrementOpenCount, CcDeferredWrites, CcDirtySharedCacheMapList, CcExceptionFilter(), CcFreeActiveVacb(), CcFreeVirtualAddress(), CcGetVirtualAddressIfMapped(), CcIdleDelayTick, CcIncrementOpenCount, CcLazyWriteHotSpots, CcLazyWriteIos, CcLazyWritePages, CcNoDelay, CcPostDeferredWrites(), CcReleaseByteRangeFromWrite(), CcReleaseMasterLock, CcScheduleLazyWriteScan(), DebugTrace, DebugTrace2, _SHARED_CACHE_MAP::DirtyPages, FALSE, _SHARED_CACHE_MAP::FileObject, _SHARED_CACHE_MAP::FileSize, FlagOn, _SHARED_CACHE_MAP::Flags, _FILE_OBJECT::FsContext, FSRTL_FLAG_USER_MAPPED_FILE, GetActiveVacbAtDpcLevel, KeQueryTickCount(), LAZY_WRITE_OCCURRED, _SHARED_CACHE_MAP::LazyWritePassCount, LazyWriter, me, mm, MmFlushSection(), MmSetAddressRangeModified(), MODIFIED_WRITE_DISABLED, _SHARED_CACHE_MAP::NeedToZero, _SHARED_CACHE_MAP::NeedToZeroPage, NT_SUCCESS, NTSTATUS(), NULL, Offset, _SHARED_CACHE_MAP::OpenCount, _LAZY_WRITER::OtherWork, PAGE_SHIFT, PAGE_SIZE, _SHARED_CACHE_MAP::PagesToWrite, PFSRTL_COMMON_FCB_HEADER, PIN_ACCESS, RetryError, _LAZY_WRITER::ScanActive, _FILE_OBJECT::SectionObjectPointer, SetFlag, _SHARED_CACHE_MAP::SharedCacheMapLinks, _SHARED_CACHE_MAP_LIST_CURSOR::SharedCacheMapLinks, Status, TRUE, _SHARED_CACHE_MAP::ValidDataGoal, _SHARED_CACHE_MAP::ValidDataLength, and WRITE_QUEUED. Referenced by CcWriteBehind(), CcZeroEndOfLastPage(), LfsFlushLfcb(), LfsFlushLogPage(), and MiFlushDataSection().
|
|
Definition at line 5885 of file cachesub.c. References ACTIVE_PAGE_IS_DIRTY, CcAcquireMasterLock, CcFreeVirtualAddress(), CcReleaseMasterLock, CcSetDirtyInMask(), CcTotalDirtyPages, ClearFlag, FlagOn, MmUnlockCachedPage(), NULL, PAGE_SHIFT, PAGE_SIZE, and VACB_MAPPING_GRANULARITY. Referenced by CcCopyRead(), CcCopyWrite(), CcDeleteSharedCacheMap(), CcFastCopyRead(), CcFastCopyWrite(), CcFlushCache(), CcGetVacbMiss(), CcMapAndCopy(), CcMdlRead(), CcPinFileData(), CcPrepareMdlWrite(), CcPurgeCacheSection(), CcSetFileSizes(), CcUninitializeCacheMap(), CcWriteBehind(), and CcZeroEndOfLastPage().
|
|
Definition at line 4232 of file cachesub.c. References ASSERT, _BITMAP_RANGE::BasePage, _BCB::BcbLinks, _SHARED_CACHE_MAP::BcbList, _SHARED_CACHE_MAP::BcbSpinLock, CACHE_NTC_BCB, CcAcquireMasterLock, CcAcquireMasterLockAtDpcLevel, CcDecrementOpenCount, CcDirtySharedCacheMapList, CcFindBitmapRangeToClean(), CcIncrementOpenCount, CcReleaseMasterLock, CcScheduleLazyWriteScan(), _BCB::Dirty, _SHARED_CACHE_MAP::DirtyPages, _MBCB::DirtyPages, _BCB::FileOffset, _BITMAP_RANGE::FirstDirtyPage, FlagOn, _SHARED_CACHE_MAP::Flags, LazyWriter, _SHARED_CACHE_MAP::Mbcb, _BCB::NodeTypeCode, NULL, _SHARED_CACHE_MAP::OpenCount, _LAZY_WRITER::OtherWork, PAGE_SHIFT, _LAZY_WRITER::ScanActive, _SHARED_CACHE_MAP::SharedCacheMapLinks, _SHARED_CACHE_MAP_LIST_CURSOR::SharedCacheMapLinks, TRUE, _SHARED_CACHE_MAP::ValidDataGoal, and WRITE_QUEUED. Referenced by CcWriteBehind().
|
|
Definition at line 6458 of file cachesub.c. References ASSERT, DISPATCH_LEVEL, Error, FALSE, FileName, IoAllocateErrorLogEntry(), IoWriteErrorLogEntry(), L, min, NTSTATUS(), NULL, String, and TRUE. Referenced by CcWriteBehind().
|
|
Definition at line 6024 of file cachesub.c. References ACTIVE_PAGE_IS_DIRTY, ASSERT, _VACB::BaseAddress, CcAcquireVacbLock, CcCopyReadExceptionFilter(), CcFreeActiveVacb(), CcFreeVirtualAddress(), CcGetVirtualAddress(), CcMaxDirtyWrite, CcReleaseVacbLock, CcSetDirtyInMask(), DebugTrace, DebugTrace2, ExRaiseStatus(), FlagOn, FsRtlNormalizeNtstatus(), me, MmCopyToCachedPage(), MmFlushSection(), MmResetPageFaultReadAhead, MmSavePageFaultReadAhead, MmSetAddressRangeModified(), MmSetPageFaultReadAhead, NT_SUCCESS, NTSTATUS(), NULL, _VACB::Overlay, PAGE_SHIFT, PAGE_SIZE, PsGetCurrentThread, SetActiveVacb, Status, TRUE, try_return, ZERO_FIRST_PAGE, ZERO_LAST_PAGE, and ZERO_MIDDLE_PAGES. Referenced by CcCopyWrite(), and CcFastCopyWrite().
|
|
Definition at line 5749 of file cachesub.c. References COMPUTE_PAGES_SPANNED, FALSE, FlagOn, MmCheckCachedPageState(), MmResetPageFaultReadAhead, MmSavePageFaultReadAhead, MmSetPageFaultReadAhead, PAGE_SIZE, PsGetCurrentThread, TRUE, try_return, ZERO_FIRST_PAGE, ZERO_LAST_PAGE, and ZERO_MIDDLE_PAGES. Referenced by CcPinFileData(), and CcPrepareMdlWrite().
|
|
Definition at line 1633 of file cachesub.c. References _CACHE_MANAGER_CALLBACKS::AcquireForReadAhead, _SHARED_CACHE_MAP::Callbacks, CcAcquireMasterLock, CcDecrementOpenCount, CcDirtySharedCacheMapList, CcFreeVirtualAddress(), CcGetVirtualAddress(), CcMissCounter, CcReadAheadIos, CcReleaseMasterLock, CcScheduleLazyWriteScan(), CcThrowAway, COMPUTE_PAGES_SPANNED, DebugTrace, _SHARED_CACHE_MAP::DirtyPages, FALSE, _SHARED_CACHE_MAP::FileSize, FlagOn, _SHARED_CACHE_MAP::Flags, FO_SEQUENTIAL_ONLY, _SHARED_CACHE_MAP::LazyWriteContext, LazyWriter, MAX_READ_AHEAD, me, MmCheckCachedPageState(), MmResetPageFaultReadAhead, MmSavePageFaultReadAhead, MmSetPageFaultReadAhead, NULL, ObDereferenceObject, Offset, _SHARED_CACHE_MAP::OpenCount, _LAZY_WRITER::OtherWork, PAGE_SIZE, PsGetCurrentThread, _PRIVATE_CACHE_MAP::ReadAheadActive, _PRIVATE_CACHE_MAP::ReadAheadEnabled, _PRIVATE_CACHE_MAP::ReadAheadLength, _PRIVATE_CACHE_MAP::ReadAheadOffset, _PRIVATE_CACHE_MAP::ReadAheadSpinLock, _CACHE_MANAGER_CALLBACKS::ReleaseFromReadAhead, _LAZY_WRITER::ScanActive, _SHARED_CACHE_MAP::SharedCacheMapLinks, _SHARED_CACHE_MAP_LIST_CURSOR::SharedCacheMapLinks, TRUE, try_return, and WRITE_QUEUED. Referenced by CcWorkerThread().
|
|
Definition at line 116 of file cachesub.c. References ASSERT, _BCB::BaseAddress, _SHARED_CACHE_MAP::BcbSpinLock, _BCB::BeyondLastByte, _BCB::ByteLength, CcAllocateInitializeBcb(), CcDereferenceFileOffset(), CcFindBcb(), CcFreeActiveVacb(), CcFreeVirtualAddress(), CcGetVirtualAddress(), CcMapAndRead(), CcReferenceFileOffset(), CcUnpinFileData(), DebugTrace, DebugTrace2, ExAcquireResourceExclusive, ExAcquireSharedStarveExclusive(), ExRaiseStatus(), FALSE, _BCB::FileOffset, FlagOn, _SHARED_CACHE_MAP::Flags, GetActiveVacb, me, MODIFIED_WRITE_DISABLED, _SHARED_CACHE_MAP::NeedToZero, NULL, PAGE_SIZE, PIN_ACCESS, PIN_EXCLUSIVE, PIN_IF_BCB, PIN_NO_READ, PIN_WAIT, _BCB::PinCount, _BCB::Resource, ROUND_TO_PAGES, _SHARED_CACHE_MAP::SectionSize, TRUE, try_return, UNPIN, _BCB::Vacb, VACB_MAPPING_GRANULARITY, _SHARED_CACHE_MAP::ValidDataGoal, VOID(), ZERO_FIRST_PAGE, ZERO_LAST_PAGE, and ZERO_MIDDLE_PAGES. Referenced by CcCopyRead(), CcCopyWrite(), CcMapData(), CcPinMappedData(), CcPinRead(), CcPreparePinWrite(), and CcZeroData().
|
|
Definition at line 3758 of file cachesub.c. References ASSERT, BooleanFlagOn, CACHE_NTC_BCB, CcSetDirtyInMask(), CcSetDirtyPinnedData(), CcUnpinFileData(), DebugTrace, DebugTrace2, DISABLE_WRITE_BEHIND, FlagOn, me, MODIFIED_WRITE_DISABLED, NULL, SET_CLEAN, TRUE, and UNPIN. Referenced by CcFlushCache().
|
|
Definition at line 5024 of file cachesub.c. References ASSERT, CACHE_NTC_BCB, CACHE_NTC_OBCB, CcAcquireVacbLock, CcBeyondVacbs, CcReleaseVacbLock, CcVacbs, and _VACB::Overlay.
|
|
Definition at line 5101 of file cachesub.c.
|
|
Definition at line 1253 of file cachesub.c. References ASSERT, _PRIVATE_CACHE_MAP::BeyondLastByte1, _PRIVATE_CACHE_MAP::BeyondLastByte2, CcAcquireMasterLock, CcAllocateWorkQueueEntry, CcExpressWorkQueue, CcIncrementOpenCount, CcPostWorkQueue(), CcReleaseMasterLock, DebugTrace, DebugTrace2, DISABLE_READ_AHEAD, FALSE, _PRIVATE_CACHE_MAP::FileOffset1, _PRIVATE_CACHE_MAP::FileOffset2, FlagOn, _SHARED_CACHE_MAP::Flags, FO_SEQUENTIAL_ONLY, _WORK_QUEUE_ENTRY::Function, me, NOISE_BITS, NULL, ObReferenceObject, PAGE_SIZE, _WORK_QUEUE_ENTRY::Parameters, PWORK_QUEUE_ENTRY, ReadAhead, _PRIVATE_CACHE_MAP::ReadAheadActive, _PRIVATE_CACHE_MAP::ReadAheadLength, _PRIVATE_CACHE_MAP::ReadAheadMask, _PRIVATE_CACHE_MAP::ReadAheadOffset, _PRIVATE_CACHE_MAP::ReadAheadSpinLock, ROUND_TO_PAGES, and TRUE. Referenced by CcCopyRead(), CcFastCopyRead(), and CcMdlRead().
|
|
Definition at line 2242 of file cachesub.c. References ASSERT, _BITMAP_RANGE::BasePage, _BITMAP_RANGE::Bitmap, _MBCB::BitmapRange1, _MBCB::BitmapRange2, _MBCB::BitmapRange3, _MBCB::BitmapRanges, CACHE_NTC_MBCB, CACHE_NTC_MBCB_GRANDE, CcAcquireMasterLockAtDpcLevel, CcAcquireVacbLockAtDpcLevel, CcAllocateInitializeBcb(), CcAllocateVacbLevel(), CcDeallocateVacbLevel(), CcDirtySharedCacheMapList, CcFindBitmapRangeToDirty(), CcPrefillVacbLevelZone(), CcReleaseMasterLockFromDpcLevel, CcReleaseVacbLock, CcReleaseVacbLockFromDpcLevel, CcScheduleLazyWriteScan(), CcTotalDirtyPages, _BITMAP_RANGE::DirtyPages, _MBCB::DirtyPages, FALSE, _BITMAP_RANGE::FirstDirtyPage, _BITMAP_RANGE::LastDirtyPage, LazyWriter, _BITMAP_RANGE::Links, MBCB_BITMAP_INITIAL_SIZE, MBCB_BITMAP_RANGE, _MBCB::NodeTypeCode, NULL, PAGE_SHIFT, PAGE_SIZE, QuadAlign, _MBCB::ResumeWritePage, _LAZY_WRITER::ScanActive, and _SHARED_CACHE_MAP_LIST_CURSOR::SharedCacheMapLinks. Referenced by CcFreeActiveVacb(), CcMapAndCopy(), CcMdlWriteComplete2(), CcPrepareMdlWrite(), CcPurgeAndClearCacheSection(), and CcReleaseByteRangeFromWrite().
|
|
Definition at line 2560 of file cachesub.c. References ASSERT, _SHARED_CACHE_MAP::BcbSpinLock, CACHE_NTC_OBCB, CcAcquireMasterLockAtDpcLevel, CcDirtySharedCacheMapList, CcReleaseMasterLockFromDpcLevel, CcScheduleLazyWriteScan(), CcTotalDirtyPages, DebugTrace, _SHARED_CACHE_MAP::DirtyPages, DISABLE_WRITE_BEHIND, FlagOn, _SHARED_CACHE_MAP::Flags, LazyWriter, me, NULL, PAGE_SHIFT, POBCB, _LAZY_WRITER::ScanActive, _SHARED_CACHE_MAP::SharedCacheMapLinks, _SHARED_CACHE_MAP_LIST_CURSOR::SharedCacheMapLinks, TRUE, and _SHARED_CACHE_MAP::ValidDataGoal. Referenced by CcCopyWrite(), CcPreparePinWrite(), CcReleaseByteRangeFromWrite(), CcUnpinRepinnedBcb(), CcZeroData(), LfsFlushLfcb(), and LfsFlushLogPage().
|
|
Definition at line 1222 of file cachesub.c. References PPRIVATE_CACHE_MAP. Referenced by UdfCommonRead().
|
|
Definition at line 2717 of file cachesub.c. References _IRP::AssociatedIrp, Buffer, DebugTrace, DebugTrace2, _IO_STACK_LOCATION::DeviceObject, Event(), Executive, FALSE, _IO_STACK_LOCATION::FileObject, _IRP::Flags, IoAllocateIrp(), IoCallDriver, IoGetNextIrpStackLocation, IoGetRelatedDeviceObject(), Irp, IRP_MJ_SET_INFORMATION, IRP_PAGING_IO, IRP_SYNCHRONOUS_PAGING_IO, KeInitializeEvent, KernelMode, KeWaitForSingleObject(), _IO_STACK_LOCATION::MajorFunction, me, NT_SUCCESS, NTSTATUS(), NULL, _IO_STACK_LOCATION::Parameters, PIO_STACK_LOCATION, PsGetCurrentThread, _IRP::RequestorMode, _DEVICE_OBJECT::StackSize, Status, _IRP::Tail, TRUE, _IRP::UserEvent, and _IRP::UserIosb. Referenced by CcWriteBehind().
|
|
Definition at line 974 of file cachesub.c. References ASSERT, _SHARED_CACHE_MAP::BcbSpinLock, CACHE_NTC_BCB, CACHE_NTC_SHARED_CACHE_MAP, CcAcquireMasterLockAtDpcLevel, CcAcquireVacbLockAtDpcLevel, CcBcbSpinLock, CcBeyondVacbs, CcBugCheck, CcCleanSharedCacheMapList, CcDeallocateBcb(), CcFreeVirtualAddress(), CcPagesYetToWrite, CcReleaseMasterLockFromDpcLevel, CcReleaseVacbLockFromDpcLevel, CcTotalDirtyPages, CcUnlockVacbLevel, CcVacbs, DebugTrace, _SHARED_CACHE_MAP::DirtyPages, ExReleaseResource, FALSE, FlagOn, _SHARED_CACHE_MAP::Flags, me, MODIFIED_WRITE_DISABLED, _SHARED_CACHE_MAP::NodeTypeCode, NULL, _SHARED_CACHE_MAP::OpenCount, PAGE_SHIFT, PVACB, SET_CLEAN, _SHARED_CACHE_MAP::SharedCacheMapLinks, TRUE, UNPIN, and UNREF. Referenced by CcAcquireByteRangeForWrite(), CcCopyRead(), CcCopyWrite(), CcGetDirtyPages(), CcMapData(), CcPinFileData(), CcReleaseByteRangeFromWrite(), CcUnpinData(), CcUnpinDataForThread(), CcUnpinRepinnedBcb(), and CcZeroData().
|
|
Definition at line 5143 of file cachesub.c. References ASSERT, CcDeferredWrites, CcPostDeferredWrites(), CcSetDirtyPinnedData(), CcUnpinFileData(), DebugTrace, DebugTrace2, ExAcquireResourceExclusive, FALSE, _SHARED_CACHE_MAP::FileObject, FlagOn, _SHARED_CACHE_MAP::Flags, me, MmFlushSection(), MmSetAddressRangeModified(), MODIFIED_WRITE_DISABLED, NULL, Resource, RetryError, _FILE_OBJECT::SectionObjectPointer, SET_CLEAN, TRUE, and UNPIN.
|
|
Definition at line 3880 of file cachesub.c. References CC_REQUEUE, CcAcquireMasterLock, CcAcquireMasterLockAtDpcLevel, CcDecrementOpenCount, CcDeferredWrites, CcDeleteSharedCacheMap(), CcFlushCache(), CcFreeActiveVacb(), CcGetFlushedValidData(), CcIncrementOpenCount, CcLogError(), CcNoDelay, CcPagesYetToWrite, CcPostDeferredWrites(), CcReleaseMasterLock, CcReleaseMasterLockFromDpcLevel, CcSetValidData(), ClearFlag, DbgPrint, DebugTrace, _MBCB::DirtyPages, ExAllocatePoolWithTag, ExFreePool(), FALSE, FlagOn, FsRtlAcquireFileExclusive(), FsRtlReleaseFile(), GetActiveVacbAtDpcLevel, IoRaiseInformationalHardError(), LAZY_WRITE_OCCURRED, me, NT_SUCCESS, NTSTATUS(), NULL, ObQueryNameString(), PagedPool, _MBCB::PagesToWrite, PIN_ACCESS, RetryError, Status, TRUE, and WRITE_QUEUED. Referenced by CcWorkerThread().
|
|
Definition at line 41 of file cachesub.c. Referenced by CcMapAndCopy(). |