]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
page cache: Convert filemap_map_pages to XArray
authorMatthew Wilcox <willy@infradead.org>
Thu, 17 May 2018 04:08:30 +0000 (00:08 -0400)
committerMatthew Wilcox <willy@infradead.org>
Sun, 21 Oct 2018 14:46:35 +0000 (10:46 -0400)
commit070e807c690bf9a648d4a878f3c68ea9f5f5ce14
tree8619c4d10c81696f4f293145a933284215b1577d
parentc1901cd33cf407d77a181f8dd4ffff98041ef480
page cache: Convert filemap_map_pages to XArray

Slight change of strategy here; if we have trouble getting hold of a
page for whatever reason (eg a compound page is split underneath us),
don't spin to stabilise the page, just continue the iteration, like we
would if we failed to trylock the page.  Since this is a speculative
optimisation, it feels like we should allow the process to take an extra
fault if it turns out to need this page instead of spending time to pin
down a page it may not need.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
mm/filemap.c