Skip to content
Commit 0d3f9296 authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

page cache: Convert hole search to XArray



The page cache offers the ability to search for a miss in the previous or
next N locations.  Rather than teach the XArray about the page cache's
definition of a miss, use xas_prev() and xas_next() to search the page
array.  This should be more efficient as it does not have to start the
lookup from the top for each index.

Signed-off-by: default avatarMatthew Wilcox <willy@infradead.org>
parent eb797a8e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment