Hi Jeffle, Thanks for the patch. On Mon, 2021-04-12 at 11:46 +0800, Jeffle Xu wrote: > - i = FILE_SIZE / 2 / page_size + 1; > + i = file_size / 2 / page_size + 1; > while (i < vec_size && vec[i]) { > ra_pages++; > i++; One minor nit: now that you know the readahead size exactly, this could check that only the readahead window has been loaded and that anything beyond that is still not populated. Acked-by: Ricardo Cañuelo <ricardo.canuelo@xxxxxxxxxxxxx>