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

Function Ext2FlushRange

Ext4Fsd/ext3/generic.c:299–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297
298
299VOID
300Ext2FlushRange(IN PEXT2_VCB Vcb, LARGE_INTEGER s, LARGE_INTEGER e)
301{
302 ULONG len;
303
304 if (e.QuadPart <= s.QuadPart)
305 return;
306
307 /* loop per 2G */
308 while (s.QuadPart < e.QuadPart) {
309 if (e.QuadPart > s.QuadPart + 1024 * 1024 * 1024) {
310 len = 1024 * 1024 * 1024;
311 } else {
312 len = (ULONG) (e.QuadPart - s.QuadPart);
313 }
314 CcFlushCache(&Vcb->SectionObject, &s, len, NULL);
315 s.QuadPart += len;
316 }
317}
318
319NTSTATUS
320Ext2FlushVcb(IN PEXT2_VCB Vcb)

Callers 1

Ext2FlushVcbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected