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

Function Ext2RemoveBlockExtent

Ext4Fsd/memory.c:1094–1116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1092
1093
1094BOOLEAN
1095Ext2RemoveBlockExtent(
1096 IN PEXT2_VCB Vcb,
1097 IN PEXT2_MCB Mcb,
1098 IN ULONG Start,
1099 IN ULONG Number
1100)
1101{
1102 LONGLONG Vbn = 0;
1103 LONGLONG Length = 0;
1104 BOOLEAN rc;
1105
1106 Vbn = ((LONGLONG) Start) << BLOCK_BITS;
1107 Length = ((LONGLONG)Number << BLOCK_BITS);
1108
1109 if (Mcb) {
1110 rc = Ext2RemoveMcbExtent(Vcb, Mcb, Vbn, Length);
1111 } else {
1112 rc = Ext2RemoveVcbExtent(Vcb, Vbn, Length);
1113 }
1114
1115 return rc;
1116}
1117
1118NTSTATUS
1119Ext2InitializeZone(

Callers 4

Ext2TruncateBlockFunction · 0.85
Ext2NewBlockFunction · 0.85
Ext2FreeBlockFunction · 0.85
Ext2TruncateExtentFunction · 0.85

Calls 2

Ext2RemoveMcbExtentFunction · 0.85
Ext2RemoveVcbExtentFunction · 0.85

Tested by

no test coverage detected