]> www.infradead.org Git - users/willy/xarray.git/commit
s390: Convert gmap to XArray
authorMatthew Wilcox <willy@infradead.org>
Tue, 16 Oct 2018 21:01:23 +0000 (17:01 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 8 Aug 2019 18:01:05 +0000 (14:01 -0400)
commit92abffbcf3087ce8a527c53b07120d188d39c62d
tree4937c1c260efea278ebf44d29ab4203248b4c6aa
parent439c7a5909d89685b7afbe3d8eda83b7140014e3
s390: Convert gmap to XArray

The three radix trees in gmap are all converted to the XArray.
This is another case where the multiple locks held mandates the use
of the xa_reserve() API.  The gmap_insert_rmap() function is
considerably simplified by using the advanced API;
gmap_radix_tree_free() turns out to just be xa_destroy(), and
gmap_rmap_radix_tree_free() is a nice little iteration followed
by xa_destroy().

Signed-off-by: Matthew Wilcox <willy@infradead.org>
arch/s390/include/asm/gmap.h
arch/s390/include/asm/pgtable.h
arch/s390/mm/gmap.c