Merge tag 'xarray-5.9' of git://git.infradead.org/users/willy/xarray
[linux-2.6-microblaze.git] / include / linux / xarray.h
index 4be9c57..92c0160 100644 (file)
@@ -1507,6 +1507,28 @@ void xas_pause(struct xa_state *);
 
 void xas_create_range(struct xa_state *);
 
+#ifdef CONFIG_XARRAY_MULTI
+int xa_get_order(struct xarray *, unsigned long index);
+void xas_split(struct xa_state *, void *entry, unsigned int order);
+void xas_split_alloc(struct xa_state *, void *entry, unsigned int order, gfp_t);
+#else
+static inline int xa_get_order(struct xarray *xa, unsigned long index)
+{
+       return 0;
+}
+
+static inline void xas_split(struct xa_state *xas, void *entry,
+               unsigned int order)
+{
+       xas_store(xas, entry);
+}
+
+static inline void xas_split_alloc(struct xa_state *xas, void *entry,
+               unsigned int order, gfp_t gfp)
+{
+}
+#endif
+
 /**
  * xas_reload() - Refetch an entry from the xarray.
  * @xas: XArray operation state.