Hi Krzysztof, > - next_pfn = folio_pfn(folio) + nr_pages; > + > + /* > + * We assume folios are placed one after the other in memory > + * and predict where the next folio begins. > + */ > + next_pfn = folio_pfn(folio) + folio_page_index + nr_pages;
referring to the comment, we are not really "assuming" anything here; we are storing the next PFN so that continguous physcal pages can be merged into the same SG entry. Thanks, Andi
