aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/xarray.h
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2018-08-15 14:13:29 -0400
committerMatthew Wilcox <willy@infradead.org>2018-10-21 10:46:46 -0400
commit0e9446c35a80931044b6d8d2d74a9cabd248539f (patch)
tree22064e303ba555570acaefb65734a53be36d4d44 /include/linux/xarray.h
parent4f06d6302da682157890f72c0573e12a73536814 (diff)
xarray: Add range store functionality
This version of xa_store_range() really only supports load and store. Our only user only needs basic load and store functionality, so there's no need to do the extra work to support marking and overlapping stores correctly yet. Signed-off-by: Matthew Wilcox <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 e0b57af52e9b..d9514928ddac 100644
--- a/include/linux/xarray.h
+++ b/include/linux/xarray.h
@@ -292,6 +292,8 @@ void *xa_store(struct xarray *, unsigned long index, void *entry, gfp_t);
292void *xa_cmpxchg(struct xarray *, unsigned long index, 292void *xa_cmpxchg(struct xarray *, unsigned long index,
293 void *old, void *entry, gfp_t); 293 void *old, void *entry, gfp_t);
294int xa_reserve(struct xarray *, unsigned long index, gfp_t); 294int xa_reserve(struct xarray *, unsigned long index, gfp_t);
295void *xa_store_range(struct xarray *, unsigned long first, unsigned long last,
296 void *entry, gfp_t);
295bool xa_get_mark(struct xarray *, unsigned long index, xa_mark_t); 297bool xa_get_mark(struct xarray *, unsigned long index, xa_mark_t);
296void xa_set_mark(struct xarray *, unsigned long index, xa_mark_t); 298void xa_set_mark(struct xarray *, unsigned long index, xa_mark_t);
297void xa_clear_mark(struct xarray *, unsigned long index, xa_mark_t); 299void xa_clear_mark(struct xarray *, unsigned long index, xa_mark_t);