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

mempool: rename struct mempool_s to struct mempool

Drop the pointless _s prefix and align to the usual struct naming to
prepare for actually using the struct instead of the typedef so that
random headers don't need to include mempool.h for just having a pointer
to the mempool.

Link: https://lkml.kernel.org/r/20250812083105.371295-1-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Christoph Lameter (Ampere) <cl@gentwo.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Christoph Hellwig and committed by
Andrew Morton
0f9ab62a dca4437a

+3 -3
+1 -1
include/linux/blkdev.h
··· 199 199 unsigned int zone_wplugs_hash_bits; 200 200 atomic_t nr_zone_wplugs; 201 201 spinlock_t zone_wplugs_lock; 202 - struct mempool_s *zone_wplugs_pool; 202 + struct mempool *zone_wplugs_pool; 203 203 struct hlist_head *zone_wplugs_hash; 204 204 struct workqueue_struct *zone_wplugs_wq; 205 205 #endif /* CONFIG_BLK_DEV_ZONED */
+1 -1
include/linux/mempool.h
··· 15 15 typedef void * (mempool_alloc_t)(gfp_t gfp_mask, void *pool_data); 16 16 typedef void (mempool_free_t)(void *element, void *pool_data); 17 17 18 - typedef struct mempool_s { 18 + typedef struct mempool { 19 19 spinlock_t lock; 20 20 int min_nr; /* nr of elements at *elements */ 21 21 int curr_nr; /* Current nr of elements at *elements */
+1 -1
include/linux/netfs.h
··· 21 21 #include <linux/rolling_buffer.h> 22 22 23 23 enum netfs_sreq_ref_trace; 24 - typedef struct mempool_s mempool_t; 24 + typedef struct mempool mempool_t; 25 25 struct folio_queue; 26 26 27 27 /**