#define NDEBUG
#include <debug.h>
+BOOLEAN CcPfEnablePrefetcher;
PFSN_PREFETCHER_GLOBALS CcPfGlobals;
/* FUNCTIONS *****************************************************************/
CCTRACE(CC_API_DEBUG, "Bcb=%p Owner=%p\n",
Bcb, Owner);
- if (iBcb->OwnerPointer)
- DPRINT1("OwnerPointer was already set?! Old: %p, New: %p\n", iBcb->OwnerPointer, Owner);
- iBcb->OwnerPointer = Owner;
+ if (!ExIsResourceAcquiredExclusiveLite(&iBcb->Lock) && !ExIsResourceAcquiredSharedLite(&iBcb->Lock))
+ {
+ DPRINT1("Current thread doesn't own resource!\n");
+ return;
+ }
+
+ ExSetResourceOwnerPointer(&iBcb->Lock, Owner);
}
/*
IN ULONG Granularity
)
{
+ static ULONG Warn;
+
CCTRACE(CC_API_DEBUG, "FileObject=%p Granularity=%lu\n",
FileObject, Granularity);
- UNIMPLEMENTED;
+ if (!Warn++) UNIMPLEMENTED;
}