]> git.ipfire.org Git - thirdparty/linux.git/commit - mm/shmem.c
shmem: Convert shmem_add_to_page_cache to XArray
authorMatthew Wilcox <willy@infradead.org>
Fri, 1 Dec 2017 18:25:14 +0000 (13:25 -0500)
committerMatthew Wilcox <willy@infradead.org>
Sun, 21 Oct 2018 14:46:40 +0000 (10:46 -0400)
commit552446a4166189a8c2515571dd6e25fd64a2dc78
tree63f5f81a3982064332da1d1d891ce2da2118a554
parente21a29552fa3f44ea41c53488875015ae70fd7f8
shmem: Convert shmem_add_to_page_cache to XArray

We can use xas_find_conflict() instead of radix_tree_gang_lookup_slot()
to find any conflicting entry and combine the three paths through this
function into one.

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