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?
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?