Home
last modified time | relevance | path

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

/haiku/src/add-ons/kernel/drivers/disk/virtual/ram_disk/
H A Dcache_support.h18 size_t missingPages = 0; in cache_get_pages() local
30 missingPages++; in cache_get_pages()
40 if (isWrite && missingPages > 0) { in cache_get_pages()
42 vm_page_reserve_pages(&reservation, missingPages, in cache_get_pages()
52 if (--missingPages == 0) in cache_get_pages()
/haiku/src/add-ons/kernel/file_systems/packagefs/package/
H A DCachedDataReader.cpp176 page_num_t missingPages = 0; in _ReadCacheLine() local
193 if (missingPages == 0) in _ReadCacheLine()
196 missingPages += currentPageOffset - pageOffset; in _ReadCacheLine()
212 if (missingPages > 0) { in _ReadCacheLine()
220 if (!vm_page_try_reserve_pages(&reservation, missingPages, in _ReadCacheLine()
222 _DiscardPages(pages, firstMissing - firstPageOffset, missingPages); in _ReadCacheLine()
246 missingPages = lastMissing - firstMissing + 1; in _ReadCacheLine()
261 missingPages); in _ReadCacheLine()
267 (size_t)missingPages * B_PAGE_SIZE, requestOffset, in _ReadCacheLine()
270 _DiscardPages(pages, firstMissing - firstPageOffset, missingPages); in _ReadCacheLine()
/haiku/src/system/kernel/device_manager/
H A DIOCache.cpp283 page_num_t missingPages = 0; in _TransferRequestLine() local
300 if (missingPages == 0) in _TransferRequestLine()
303 missingPages += currentPageOffset - pageOffset; in _TransferRequestLine()
321 if (missingPages > 0) { in _TransferRequestLine()
329 if (!vm_page_try_reserve_pages(&reservation, missingPages, in _TransferRequestLine()
331 _DiscardPages(firstMissing - firstPageOffset, missingPages); in _TransferRequestLine()
358 missingPages = lastMissing - firstMissing + 1; in _TransferRequestLine()
383 missingPages, false, isVIP); in _TransferRequestLine()
389 (size_t)missingPages * B_PAGE_SIZE, requestOffset, in _TransferRequestLine()
392 _DiscardPages(firstMissing - firstPageOffset, missingPages); in _TransferRequestLine()