]> git.baikalelectronics.ru Git - 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)
commitf0351dddd165799457a1045cb77197b0cbf25cee
tree8619c4d10c81696f4f293145a933284215b1577d
parent9a055375e6c348b2f7803338e0ce7a49dd564de5
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