On 2024/4/12 11:17, Matthew Wilcox wrote:
On Fri, Apr 12, 2024 at 10:57:04AM +0800, Kefeng Wang wrote:} while ((folio = next_uptodate_folio(&xas, mapping, end_pgoff)) != NULL); + + add_mm_counter(vma->vm_mm, mm_counter_file(folio), rss);Can't folio be NULL here?
indeed, I need get mm counter type before while