Home
last modified time | relevance | path

Searched refs:kPageCountPerIteration (Results 1 – 1 of 1) sorted by relevance

/haiku/src/add-ons/kernel/drivers/disk/virtual/ram_disk/
H A Dram_disk.cpp399 static const size_t kPageCountPerIteration = 1024; in Flush() local
406 vm_page** pages = new(std::nothrow) vm_page*[kPageCountPerIteration]; in Flush()
409 uint8* buffer = (uint8*)malloc(kPageCountPerIteration * B_PAGE_SIZE); in Flush()
450 || index >= kPageCountPerIteration in Flush()
733 static const size_t kPageCountPerIteration = 1024; in _LoadFile() local
740 new(std::nothrow) vm_page*[kPageCountPerIteration]); in _LoadFile()
743 new(std::nothrow) uint8[kPageCountPerIteration * B_PAGE_SIZE]); in _LoadFile()
758 size_t pagesToRead = std::min(kPageCountPerIteration, in _LoadFile()