Skip to main content

read_ahead_size_for_chunk_size

Function read_ahead_size_for_chunk_size 

Source
pub fn read_ahead_size_for_chunk_size(
    chunk_size: u64,
    suggested_read_ahead_size: u64,
) -> u64
Expand description

Calculates the readahead size for a given chunk size, rounding down suggested_read_ahead_size to a multiple of chunk_size, or returning chunk_size if it is larger than suggested_read_ahead_size.