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

Function Ext2IsFastIoPossible

Ext4Fsd/fastio.c:37–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35#endif
36
37FAST_IO_POSSIBLE
38Ext2IsFastIoPossible(
39 IN PEXT2_FCB Fcb
40)
41{
42 FAST_IO_POSSIBLE IsPossible = FastIoIsNotPossible;
43
44 if (!Fcb || !FsRtlOplockIsFastIoPossible(&Fcb->Oplock))
45 return IsPossible;
46
47 IsPossible = FastIoIsQuestionable;
48
49 if (!FsRtlAreThereCurrentFileLocks(&Fcb->FileLockAnchor)) {
50 if (!IsVcbReadOnly(Fcb->Vcb) && !FlagOn(Fcb->Vcb->Flags, VCB_VOLUME_LOCKED)) {
51 IsPossible = FastIoIsPossible;
52 }
53 }
54
55 return IsPossible;
56}
57
58
59BOOLEAN

Callers 10

Ext2CleanupFunction · 0.85
Ext2FastIoLockFunction · 0.85
Ext2FastIoUnlockSingleFunction · 0.85
Ext2FastIoUnlockAllFunction · 0.85
Ext2FastIoUnlockAllByKeyFunction · 0.85
Ext2OplockRequestFunction · 0.85
Ext2LockControlFunction · 0.85
Ext2SetFileInformationFunction · 0.85
Ext2WriteFileFunction · 0.85
Ext2ReadFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected