]> www.infradead.org Git - users/willy/pagecache.git/commit
rmap: add folio_add_file_rmap_range()
authorYin Fengwei <fengwei.yin@intel.com>
Mon, 6 Feb 2023 14:06:37 +0000 (22:06 +0800)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 2 Aug 2023 02:53:28 +0000 (22:53 -0400)
commitdfb6d0ee76c774f189185218ebc7ec91d4630db8
tree489860357bd0fba7370cf2360304eb1e71ea8f6d
parentd317db3473f751c88c735a65fb1c182a09bb21e2
rmap: add folio_add_file_rmap_range()

folio_add_file_rmap_range() allows to add pte mapping to a specific
range of file folio. Comparing to page_add_file_rmap(), it batched
updates __lruvec_stat for large folio.

Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/rmap.h
mm/rmap.c