OSDN Git Service

page cache: Add and replace pages using the XArray
authorMatthew Wilcox <willy@infradead.org>
Fri, 17 Nov 2017 15:01:45 +0000 (10:01 -0500)
committerMatthew Wilcox <willy@infradead.org>
Sun, 21 Oct 2018 14:46:33 +0000 (10:46 -0400)
commit74d609585d8bd6083bd9d75bc1fd2c0d3851bcc5
tree21b2c29ac80af601c6cdfcea2452fc2b9c00f617
parent0d3f92966629e536b0c5c2355c1ada8e21c245f6
page cache: Add and replace pages using the XArray

Use the XArray APIs to add and replace pages in the page cache.  This
removes two uses of the radix tree preload API and is significantly
shorter code.  It also removes the last user of __radix_tree_create()
outside radix-tree.c itself, so make it static.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
include/linux/radix-tree.h
include/linux/swap.h
lib/radix-tree.c
mm/filemap.c