]> www.infradead.org Git - users/willy/linux.git/commitdiff
maple-tree: Export mas_erase()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 20 Oct 2021 19:20:46 +0000 (15:20 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 20 Oct 2021 19:20:46 +0000 (15:20 -0400)
This is clearly part of the exported API.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/maple_tree.h
lib/maple_tree.c

index 19276546faba5abac458feebb3d741719cc354c9..91765810e5928fe042c21c8e0ee04854a223fdee 100644 (file)
@@ -312,6 +312,7 @@ struct ma_state {
 
 void *mas_walk(struct ma_state *mas);
 void *mas_store(struct ma_state *mas, void *entry);
+void *mas_erase(struct ma_state *mas);
 int mas_store_gfp(struct ma_state *mas, void *entry, gfp_t gfp);
 void *mas_find(struct ma_state *mas, unsigned long max);
 
index bac59712774c7a2a66ea0a987e1d1bde1db85686..cfc69bdfb482e9029a77a94fc5924b5222a577c2 100644 (file)
@@ -5914,7 +5914,7 @@ EXPORT_SYMBOL_GPL(mas_find);
  *
  * Return: the entry that was erased, @mas->index and @mas->last are updated.
  */
-static inline void *mas_erase(struct ma_state *mas)
+void *mas_erase(struct ma_state *mas)
 {
        unsigned long r_max, r_min;
        void *entry = NULL;
@@ -5930,6 +5930,7 @@ retry:
 
        return entry;
 }
+EXPORT_SYMBOL_GPL(mas_erase);
 
 /*
  * mas_nomem() - * Check if there was an error allocating and do the allocation