mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
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>
This commit is contained in:
parent
c1901cd33c
commit
070e807c69
1 changed files with 13 additions and 29 deletions
42
mm/filemap.c
42
mm/filemap.c
Loading…
Add table
Add a link
Reference in a new issue