Lines Matching full:ra
647 static void fat_ra_init(struct super_block *sb, struct fatent_ra *ra, in fat_ra_init() argument
672 ra->cur = 0; in fat_ra_init()
673 ra->limit = (block_end + 1) - blocknr; in fat_ra_init()
676 ra->ra_blocks = reada_blocks >> 1; in fat_ra_init()
677 ra->ra_advance = ra->cur; in fat_ra_init()
678 ra->ra_next = ra->cur; in fat_ra_init()
679 ra->ra_limit = ra->cur + min_t(sector_t, reada_blocks, ra->limit); in fat_ra_init()
683 static void fat_ent_reada(struct super_block *sb, struct fatent_ra *ra, in fat_ent_reada() argument
686 if (ra->ra_next >= ra->ra_limit) in fat_ent_reada()
689 if (ra->cur >= ra->ra_advance) { in fat_ent_reada()
698 diff = blocknr - ra->cur; in fat_ent_reada()
704 for (; ra->ra_next < ra->ra_limit; ra->ra_next++) in fat_ent_reada()
705 sb_breadahead(sb, ra->ra_next + diff); in fat_ent_reada()
709 ra->ra_advance += ra->ra_blocks; in fat_ent_reada()
710 ra->ra_limit += min_t(sector_t, in fat_ent_reada()
711 ra->ra_blocks, ra->limit - ra->ra_limit); in fat_ent_reada()
713 ra->cur++; in fat_ent_reada()