From: Matthew Wilcox (Oracle) Date: Wed, 20 Oct 2021 19:20:46 +0000 (-0400) Subject: maple-tree: Export mas_erase() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5d43f289d0e876c35e8ddf8ff9e4f4bc429aef36;p=users%2Fwilly%2Flinux.git maple-tree: Export mas_erase() This is clearly part of the exported API. Signed-off-by: Matthew Wilcox (Oracle) --- diff --git a/include/linux/maple_tree.h b/include/linux/maple_tree.h index 19276546faba5..91765810e5928 100644 --- a/include/linux/maple_tree.h +++ b/include/linux/maple_tree.h @@ -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); diff --git a/lib/maple_tree.c b/lib/maple_tree.c index bac59712774c7..cfc69bdfb482e 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -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