]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
xarray: Add xa_reserve and xa_release
authorMatthew Wilcox <willy@infradead.org>
Mon, 1 Oct 2018 18:54:59 +0000 (14:54 -0400)
committerMatthew Wilcox <willy@infradead.org>
Sun, 21 Oct 2018 14:46:00 +0000 (10:46 -0400)
commit9f14d4f1f1045f161fd4db8a8e194b7825c2874a
treefcc3e832d34116dec5dfe2e36525cbdb81cc47c8
parent2264f5132fe45571139727ebdeb78696b35d1506
xarray: Add xa_reserve and xa_release

This function reserves a slot in the XArray for users which need
to acquire multiple locks before storing their entry in the tree and
so cannot use a plain xa_store().

Signed-off-by: Matthew Wilcox <willy@infradead.org>
Documentation/core-api/xarray.rst
include/linux/xarray.h
lib/test_xarray.c
lib/xarray.c