Skip to content
  • Matthew Wilcox's avatar
    page cache: Convert hole search to XArray · 0d3f9296
    Matthew Wilcox authored
    
    
    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>
    0d3f9296