Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mempool: remove mempool_{init,create}_kvmalloc_pool

This was added for bcachefs and is unused now.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20251113084022.1255121-10-hch@lst.de
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>

authored by

Christoph Hellwig and committed by
Vlastimil Babka
8b41fb80 9c439176

-26
-13
include/linux/mempool.h
··· 103 103 mempool_create((_min_nr), mempool_kmalloc, mempool_kfree, \ 104 104 (void *)(unsigned long)(_size)) 105 105 106 - void *mempool_kvmalloc(gfp_t gfp_mask, void *pool_data); 107 - void mempool_kvfree(void *element, void *pool_data); 108 - 109 - static inline int mempool_init_kvmalloc_pool(mempool_t *pool, int min_nr, size_t size) 110 - { 111 - return mempool_init(pool, min_nr, mempool_kvmalloc, mempool_kvfree, (void *) size); 112 - } 113 - 114 - static inline mempool_t *mempool_create_kvmalloc_pool(int min_nr, size_t size) 115 - { 116 - return mempool_create(min_nr, mempool_kvmalloc, mempool_kvfree, (void *) size); 117 - } 118 - 119 106 /* 120 107 * A mempool_alloc_t and mempool_free_t for a simple page allocator that 121 108 * allocates pages of the order specified by pool_data
-13
mm/mempool.c
··· 728 728 } 729 729 EXPORT_SYMBOL(mempool_kfree); 730 730 731 - void *mempool_kvmalloc(gfp_t gfp_mask, void *pool_data) 732 - { 733 - size_t size = (size_t)pool_data; 734 - return kvmalloc(size, gfp_mask); 735 - } 736 - EXPORT_SYMBOL(mempool_kvmalloc); 737 - 738 - void mempool_kvfree(void *element, void *pool_data) 739 - { 740 - kvfree(element); 741 - } 742 - EXPORT_SYMBOL(mempool_kvfree); 743 - 744 731 /* 745 732 * A simple mempool-backed page allocator that allocates pages 746 733 * of the order specified by pool_data.