aboutsummaryrefslogtreecommitdiff
path: root/include/linux/xarray.h
diff options
context:
space:
mode:
authorGravatar Matthew Wilcox (Oracle) <willy@infradead.org> 2020-08-18 09:05:56 -0400
committerGravatar Matthew Wilcox (Oracle) <willy@infradead.org> 2020-10-13 08:41:26 -0400
commitf82cd2f0b5eb715b1a296e20b34da7d296b6e9a4 (patch)
treed932395ef576740b64fc24e9be268fe00ecbc56a /include/linux/xarray.h
parentXArray: Fix xas_for_each_conflict documentation (diff)
downloadlinux-f82cd2f0b5eb715b1a296e20b34da7d296b6e9a4.tar.gz
linux-f82cd2f0b5eb715b1a296e20b34da7d296b6e9a4.tar.bz2
linux-f82cd2f0b5eb715b1a296e20b34da7d296b6e9a4.zip
XArray: Add private interface for workingset node deletion
Move the tricky bits of dealing with the XArray from the workingset code to the XArray. Make it clear in the documentation that this is a private interface, and only export it for the benefit of the test suite. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'include/linux/xarray.h')
-rw-r--r--include/linux/xarray.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/xarray.h b/include/linux/xarray.h
index 6b336098fca7..29db4e16eb89 100644
--- a/include/linux/xarray.h
+++ b/include/linux/xarray.h
@@ -1286,6 +1286,8 @@ static inline bool xa_is_advanced(const void *entry)
*/
typedef void (*xa_update_node_t)(struct xa_node *node);
+void xa_delete_node(struct xa_node *, xa_update_node_t);
+
/*
* The xa_state is opaque to its users. It contains various different pieces
* of state involved in the current operation on the XArray. It should be