pub fn readahead(fd: libc::c_int, mut offset: u64, end: u64) {
let mut count;
offset = round_down_4k(offset);
loop {
if offset >= end {
break;
}
// Kernel default 128KB readahead size
count = std::cmp::min(128 << 10, end - offset);
unsafe { libc::readahead(fd, offset as i64, count as usize) };
offset += count;
}
}