Lines Matching full:hits
53 #define SWAP_RA_VAL(addr, win, hits) \ argument
56 ((hits) & SWAP_RA_HITS_MASK))
58 /* Initial readahead hits is 4 to start up with a small window */
354 int win, hits; in swap_cache_get_folio() local
358 hits = SWAP_RA_HITS(ra_val); in swap_cache_get_folio()
360 hits = min_t(int, hits + 1, SWAP_RA_HITS_MAX); in swap_cache_get_folio()
362 SWAP_RA_VAL(addr, win, hits)); in swap_cache_get_folio()
533 int hits, in __swapin_nr_pages() argument
544 pages = hits + 2; in __swapin_nr_pages()
547 * We can have no readahead hits to judge by: but must not get in __swapin_nr_pages()
574 unsigned int hits, pages, max_pages; in swapin_nr_pages() local
581 hits = atomic_xchg(&swapin_readahead_hits, 0); in swapin_nr_pages()
582 pages = __swapin_nr_pages(READ_ONCE(prev_offset), offset, hits, in swapin_nr_pages()
585 if (!hits) in swapin_nr_pages()
720 unsigned int max_win, hits, prev_win, win, left; in swap_ra_info() local
739 hits = SWAP_RA_HITS(ra_val); in swap_ra_info()
740 ra_info->win = win = __swapin_nr_pages(pfn, fpfn, hits, in swap_ra_info()