MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / Ext2WriteComplete

Function Ext2WriteComplete

Ext4Fsd/write.c:1303–1334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1301}
1302
1303NTSTATUS
1304Ext2WriteComplete (IN PEXT2_IRP_CONTEXT IrpContext)
1305{
1306 NTSTATUS Status = STATUS_UNSUCCESSFUL;
1307 PFILE_OBJECT FileObject;
1308 PIRP Irp;
1309 PIO_STACK_LOCATION IrpSp;
1310
1311 __try {
1312
1313 ASSERT(IrpContext);
1314 ASSERT((IrpContext->Identifier.Type == EXT2ICX) &&
1315 (IrpContext->Identifier.Size == sizeof(EXT2_IRP_CONTEXT)));
1316
1317 FileObject = IrpContext->FileObject;
1318
1319 Irp = IrpContext->Irp;
1320 IrpSp = IoGetCurrentIrpStackLocation(Irp);
1321
1322 CcMdlWriteComplete(FileObject, &(IrpSp->Parameters.Write.ByteOffset), Irp->MdlAddress);
1323 Irp->MdlAddress = NULL;
1324 Status = STATUS_SUCCESS;
1325
1326 } __finally {
1327
1328 if (!IrpContext->ExceptionInProgress) {
1329 Ext2CompleteIrpContext(IrpContext, Status);
1330 }
1331 }
1332
1333 return Status;
1334}
1335
1336
1337NTSTATUS

Callers 1

Ext2WriteFunction · 0.85

Calls 1

Ext2CompleteIrpContextFunction · 0.85

Tested by

no test coverage detected