]> Git Repo - linux.git/commit
XArray: Handle NULL pointers differently for allocation
authorMatthew Wilcox <[email protected]>
Mon, 5 Nov 2018 21:15:56 +0000 (16:15 -0500)
committerMatthew Wilcox <[email protected]>
Mon, 5 Nov 2018 21:38:09 +0000 (16:38 -0500)
commitd9c480435add8257f9069941f0e6196647f6d746
tree8e46a69188df371b24c83cf2181d42971336344b
parent611f318637daa5710a1d7a0e7dc6cda23914094a
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: Matthew Wilcox <[email protected]>
Documentation/core-api/xarray.rst
lib/xarray.c
This page took 0.053607 seconds and 4 git commands to generate.