Author: pschweitzer
Date: Tue Dec 28 20:59:24 2010
New Revision: 50201
URL:
http://svn.reactos.org/svn/reactos?rev=50201&view=rev
Log:
[NTOSKRNL]
Hoover a bit in CC part 1. Should make MM happier.
But MS fastfat driver not yet
Modified:
trunk/reactos/ntoskrnl/cc/copy.c
Modified: trunk/reactos/ntoskrnl/cc/copy.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/copy.c?rev=502…
==============================================================================
--- trunk/reactos/ntoskrnl/cc/copy.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cc/copy.c [iso-8859-1] Tue Dec 28 20:59:24 2010
@@ -199,8 +199,7 @@
{
Size = CacheSeg->Bcb->CacheSegmentSize;
}
- Mdl = _alloca(MmSizeOfMdl(CacheSeg->BaseAddress, Size));
- MmInitializeMdl(Mdl, CacheSeg->BaseAddress, Size);
+ Mdl = IoAllocateMdl(CacheSeg->BaseAddress, Size, FALSE, FALSE, NULL);
MmBuildMdlForNonPagedPool(Mdl);
Mdl->MdlFlags |= MDL_IO_PAGE_READ;
KeInitializeEvent(&Event, NotificationEvent, FALSE);
@@ -253,8 +252,7 @@
MmGetPfnForProcess(NULL, (PVOID)((ULONG_PTR)CacheSeg->BaseAddress + (i
<< PAGE_SHIFT)));
} while (++i < (Size >> PAGE_SHIFT));
}
- Mdl = _alloca(MmSizeOfMdl(CacheSeg->BaseAddress, Size));
- MmInitializeMdl(Mdl, CacheSeg->BaseAddress, Size);
+ Mdl = IoAllocateMdl(CacheSeg->BaseAddress, Size, FALSE, FALSE, NULL);
MmBuildMdlForNonPagedPool(Mdl);
Mdl->MdlFlags |= MDL_IO_PAGE_READ;
KeInitializeEvent(&Event, NotificationEvent, FALSE);