]> www.infradead.org Git - users/willy/xarray.git/commit
dm: Convert _minor_idr to XArray
authorMatthew Wilcox <willy@infradead.org>
Fri, 2 Nov 2018 03:26:21 +0000 (23:26 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 9 Aug 2019 01:38:13 +0000 (21:38 -0400)
commitdd661d96c1726c86985820c5865a7bc279337e95
tree16f8cb21cb54e407b22c5ecc209625487213fc28
parent327adb700aba2aa029961358f13ecb456f5fa2c1
dm: Convert _minor_idr to XArray

Drop the use of the custom MINOR_ALLOCATED define in favour of using the
ability to allocate an index for a NULL pointer.  Rename the structure
to dm_minors.

It's probably possible to replace the _minor_lock with the xa_lock, but
it might be better to separate out the multiple things which are being
protected.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
drivers/md/dm.c