Author: arty Date: Tue Nov 24 02:12:27 2009 New Revision: 44279
URL: http://svn.reactos.org/svn/reactos?rev=44279&view=rev Log: MiSwapInSectionPage releases the segment.
Modified: branches/arty-newcc/ntoskrnl/mm/section/data.c branches/arty-newcc/ntoskrnl/mm/section/image.c branches/arty-newcc/ntoskrnl/mm/section/pagefile.c
Modified: branches/arty-newcc/ntoskrnl/mm/section/data.c URL: http://svn.reactos.org/svn/reactos/branches/arty-newcc/ntoskrnl/mm/section/d... ============================================================================== --- branches/arty-newcc/ntoskrnl/mm/section/data.c [iso-8859-1] (original) +++ branches/arty-newcc/ntoskrnl/mm/section/data.c [iso-8859-1] Tue Nov 24 02:12:27 2009 @@ -523,11 +523,11 @@ else if (IS_SWAP_FROM_SSE(Entry)) { Status = MiSwapInSectionPage(AddressSpace, MemoryArea, Segment, Address, &Page); + // MiSwapInSectionPage unlocks the section segment if (Locked) { MmLockPage(Page); } - MmUnlockSectionSegment(Segment); DPRINT("Address 0x%.8X\n", Address); return(STATUS_SUCCESS); } @@ -716,6 +716,7 @@ return(STATUS_SUCCESS); }
+/* Unlocks section segment */ NTSTATUS NTAPI MiSwapInSectionPage
Modified: branches/arty-newcc/ntoskrnl/mm/section/image.c URL: http://svn.reactos.org/svn/reactos/branches/arty-newcc/ntoskrnl/mm/section/i... ============================================================================== --- branches/arty-newcc/ntoskrnl/mm/section/image.c [iso-8859-1] (original) +++ branches/arty-newcc/ntoskrnl/mm/section/image.c [iso-8859-1] Tue Nov 24 02:12:27 2009 @@ -459,11 +459,11 @@ else if (IS_SWAP_FROM_SSE(Entry)) { Status = MiSwapInSectionPage(AddressSpace, MemoryArea, Segment, Address, &Page); + // MiSwapInSectionPage unlocks the section segment if (Locked) { MmLockPage(Page); } - MmUnlockSectionSegment(Segment); //DPRINT("Address 0x%.8X\n", Address); return(STATUS_SUCCESS); }
Modified: branches/arty-newcc/ntoskrnl/mm/section/pagefile.c URL: http://svn.reactos.org/svn/reactos/branches/arty-newcc/ntoskrnl/mm/section/p... ============================================================================== --- branches/arty-newcc/ntoskrnl/mm/section/pagefile.c [iso-8859-1] (original) +++ branches/arty-newcc/ntoskrnl/mm/section/pagefile.c [iso-8859-1] Tue Nov 24 02:12:27 2009 @@ -297,6 +297,7 @@ else if (IS_SWAP_FROM_SSE(Entry)) { Status = MiSwapInSectionPage(AddressSpace, MemoryArea, Segment, Address, &Page); + // MiSwapInSectionPage unlocks the section segment if (NT_SUCCESS(Status) && Locked) { MmLockPage(Page);