]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9a8b461581373c7397c8aec2863242f281c6cf78
tree63f5f81a3982064332da1d1d891ce2da2118a554
parenta0a4491f5840355231ed6931db09ff6d89ba6948
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