Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 40 of file cleanup.c.
Referenced by Ext2FsdInitializeFunctionPointers().
{ NTSTATUS RC = STATUS_SUCCESS; PtrExt2IrpContext PtrIrpContext = NULL; BOOLEAN AreWeTopLevel = FALSE; DebugTrace( DEBUG_TRACE_IRP_ENTRY, "Cleanup IRP Received...", 0); FsRtlEnterFileSystem(); ASSERT(DeviceObject); ASSERT(Irp); // set the top level context AreWeTopLevel = Ext2IsIrpTopLevel(Irp); try { // get an IRP context structure and issue the request PtrIrpContext = Ext2AllocateIrpContext(Irp, DeviceObject); ASSERT(PtrIrpContext); RC = Ext2CommonCleanup(PtrIrpContext, Irp, TRUE); } except( Ext2ExceptionFilter(PtrIrpContext, GetExceptionInformation() ) ) { RC = Ext2ExceptionHandler(PtrIrpContext, Irp); Ext2LogEvent(EXT2_ERROR_INTERNAL_ERROR, RC); } if (AreWeTopLevel) { IoSetTopLevelIrp(NULL); } FsRtlExitFileSystem(); return(RC); }