Re: [PATCH 2/2] mm: filemap: batch mm counter updating in filemap_map_pages()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux