Lines Matching refs:ra
67 size_t ra; member
164 bc->ra = BCACHE_READAHEAD; /* optimistic read ahead */ in bcache_allocate()
214 size_t i, nblk, p_size, r_size, complete, ra; in read_strategy() local
239 bc->ra > BCACHE_MINREADAHEAD) in read_strategy()
240 bc->ra >>= 1; /* reduce read ahead */ in read_strategy()
248 if (bc->ra < BCACHE_READAHEAD) in read_strategy()
249 bc->ra <<= 1; /* increase read ahead */ in read_strategy()
292 ra = 0; in read_strategy()
294 ra = bc->bcache_nblks - BHASH(bc, p_blk + p_size); in read_strategy()
296 if (ra != 0 && ra != bc->bcache_nblks) { /* do we have RA space? */ in read_strategy()
297 ra = MIN(bc->ra, ra - 1); in read_strategy()
298 ra = rounddown(ra, 16); /* multiple of 16 blocks */ in read_strategy()
299 p_size += ra; in read_strategy()
329 bcache_rablks += ra; in read_strategy()