Skip to content
Commit d9c48043 authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

XArray: Handle NULL pointers differently for allocation



For allocating XArrays, it makes sense to distinguish beteen erasing an
entry and storing NULL.  Storing NULL keeps the index allocated with a
NULL pointer associated with it while xa_erase() frees the index.  Some
existing IDR users rely on this ability.

Signed-off-by: default avatarMatthew Wilcox <willy@infradead.org>
parent 611f3186
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment