mbox series

[v2,0/2] mm: batch mm counter updating in filemap_map_pages()

Message ID 20240412025704.53245-1-wangkefeng.wang@huawei.com (mailing list archive)
Headers show
Series mm: batch mm counter updating in filemap_map_pages() | expand

Message

Kefeng Wang April 12, 2024, 2:57 a.m. UTC
Let's batch mm counter updating to accelerate filemap_map_pages(). 

v2:
- estimate folio type from caller and no need to return from
  set_pte_range()
- use unsigned long for rss

Kefeng Wang (2):
  mm: move mm counter updating out of set_pte_range()
  mm: filemap: batch mm counter updating in filemap_map_pages()

 mm/filemap.c | 14 ++++++++++----
 mm/memory.c  |  8 +++++---
 2 files changed, 15 insertions(+), 7 deletions(-)