mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
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>
This commit is contained in:
parent
e21a29552f
commit
552446a416
1 changed files with 34 additions and 47 deletions
83
mm/shmem.c
83
mm/shmem.c
Loading…
Add table
Add a link
Reference in a new issue