]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mempool: rename struct mempool_s to struct mempool
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Aug 2025 08:30:08 +0000 (10:30 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Sep 2025 00:24:56 +0000 (17:24 -0700)
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>
include/linux/blkdev.h
include/linux/mempool.h
include/linux/netfs.h

index fe1797bbec420c6e41b480810c5a0b9f293f4d46..28ceaeffc0c9d91fd7750af4251b12f32225003c 100644 (file)
@@ -199,7 +199,7 @@ struct gendisk {
        unsigned int            zone_wplugs_hash_bits;
        atomic_t                nr_zone_wplugs;
        spinlock_t              zone_wplugs_lock;
-       struct mempool_s        *zone_wplugs_pool;
+       struct mempool          *zone_wplugs_pool;
        struct hlist_head       *zone_wplugs_hash;
        struct workqueue_struct *zone_wplugs_wq;
 #endif /* CONFIG_BLK_DEV_ZONED */
index 7b151441341b4c2895ebb5005787f3b4e010f53c..34941a4b9026b94811072d9380a9f4404f5def42 100644 (file)
@@ -15,7 +15,7 @@ struct kmem_cache;
 typedef void * (mempool_alloc_t)(gfp_t gfp_mask, void *pool_data);
 typedef void (mempool_free_t)(void *element, void *pool_data);
 
-typedef struct mempool_s {
+typedef struct mempool {
        spinlock_t lock;
        int min_nr;             /* nr of elements at *elements */
        int curr_nr;            /* Current nr of elements at *elements */
index 98c96d649bf90e568a18f409fba18afb232f7b1a..72ee7d210a7445bc67934f5dfd9a9cc33887f2f8 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/rolling_buffer.h>
 
 enum netfs_sreq_ref_trace;
-typedef struct mempool_s mempool_t;
+typedef struct mempool mempool_t;
 struct folio_queue;
 
 /**