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

Function Ext2LinkTailMcb

Ext4Fsd/memory.c:2892–2911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2890/* Link Mcb to tail of Vcb->McbList queue */
2891
2892VOID
2893Ext2LinkTailMcb(PEXT2_VCB Vcb, PEXT2_MCB Mcb)
2894{
2895 if (Mcb->Inode.i_ino == EXT2_ROOT_INO) {
2896 return;
2897 }
2898
2899 ExAcquireResourceExclusiveLite(&Vcb->McbLock, TRUE);
2900
2901 if (IsFlagOn(Mcb->Flags, MCB_VCB_LINK)) {
2902 DEBUG(DL_RES, ( "Ext2LinkTailMcb: %wZ already linked.\n",
2903 &Mcb->FullName));
2904 } else {
2905 InsertTailList(&Vcb->McbList, &Mcb->Link);
2906 SetLongFlag(Mcb->Flags, MCB_VCB_LINK);
2907 Ext2ReferXcb(&Vcb->NumOfMcb);
2908 }
2909
2910 ExReleaseResourceLite(&Vcb->McbLock);
2911}
2912
2913/* Link Mcb to head of Vcb->McbList queue */
2914

Callers 1

Ext2LookupFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected