]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
page cache: Convert filemap_range_has_page to XArray
authorMatthew Wilcox <willy@infradead.org>
Tue, 16 Jan 2018 11:26:49 +0000 (06:26 -0500)
committerMatthew Wilcox <willy@infradead.org>
Sun, 21 Oct 2018 14:46:36 +0000 (10:46 -0400)
commit8fa8e538e4be359e9042573737632dda35a8700d
treee885f07c50f9b3721d9d929bdc14de5e243333fe
parent22ecdb4f8b7dbfefa3deaf6b144093b5c4cd2aff
page cache: Convert filemap_range_has_page to XArray

Instead of calling find_get_pages_range() and putting any reference,
use xas_find() to iterate over any entries in the range, skipping the
shadow/swap entries.

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