aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_xarray.c
diff options
context:
space:
mode:
authorMatthew Wilcox <[email protected]>2018-11-05 21:15:56 +0000
committerMatthew Wilcox <[email protected]>2018-11-05 21:38:09 +0000
commitd9c480435add8257f9069941f0e6196647f6d746 (patch)
tree8e46a69188df371b24c83cf2181d42971336344b /lib/test_xarray.c
parentXArray: Unify xa_store and __xa_store (diff)
downloadkernel-d9c480435add8257f9069941f0e6196647f6d746.tar.gz
kernel-d9c480435add8257f9069941f0e6196647f6d746.zip
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]>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions