* which may sometimes be faster than the local shared pools because it
* will maintain its own per-thread arenas.
*/
-static inline void *__pool_get_first(struct pool_head *pool)
+static inline void *pool_get_from_shared_cache(struct pool_head *pool)
{
return NULL;
}
* available, otherwise returns NULL. No malloc() is attempted, and poisonning
* is never performed. The purpose is to get the fastest possible allocation.
*/
-static inline void *__pool_get_first(struct pool_head *pool)
+static inline void *pool_get_from_shared_cache(struct pool_head *pool)
{
struct pool_free_list cmp, new;
* is never performed. The purpose is to get the fastest possible allocation.
* This version takes the pool's lock in order to do this.
*/
-static inline void *__pool_get_first(struct pool_head *pool)
+static inline void *pool_get_from_shared_cache(struct pool_head *pool)
{
void *p;
goto ret;
#endif
- p = __pool_get_first(pool);
+ p = pool_get_from_shared_cache(pool);
if (!p)
p = pool_alloc_nocache(pool);
ret: