summaryrefslogtreecommitdiff
path: root/mm/swap.c
diff options
context:
space:
mode:
authorYin Fengwei <fengwei.yin@intel.com>2023-08-02 18:14:02 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-08-25 02:20:26 +0300
commitde74976eb65151a2f568e477fc2e0032df5b22b4 (patch)
treefa36b6e03679eeaad213a391dde09527a9d665bf /mm/swap.c
parent9f1f5b60e76d44fa85fef6970b7477f72d3999eb (diff)
downloadlinux-de74976eb65151a2f568e477fc2e0032df5b22b4.tar.xz
filemap: add filemap_map_folio_range()
filemap_map_folio_range() maps partial/full folio. Comparing to original filemap_map_pages(), it updates refcount once per folio instead of per page and gets minor performance improvement for large folio. With a will-it-scale.page_fault3 like app (change file write fault testing to read fault testing. Trying to upstream it to will-it-scale at [1]), got 2% performance gain on a 48C/96T Cascade Lake test box with 96 processes running against xfs. [1]: https://github.com/antonblanchard/will-it-scale/pull/37 Link: https://lkml.kernel.org/r/20230802151406.3735276-35-willy@infradead.org Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/swap.c')
0 files changed, 0 insertions, 0 deletions