Christoph Hellwig
6bb0009862
mm/slab: improve kmem_cache_alloc_bulk
...
The kmem_cache_alloc_bulk return value is weird. It returns the number
of allocated objects, but that must always be 0 or the requested number
based on the implementations and the handling in the callers, but that
assumption is not actually documented anywhere, which confuses automated
review tools.
Fix this by returning a bool if the allocation succeeded and adding a
kerneldoc comment explaining the API.
[rob.clark@oss.qualcomm.com: fixups in
msm_iommu_pagetable_prealloc_allocate() ]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com> # skbuff
Link: https://patch.msgid.link/20260528093437.2519248-2-hch@lst.de
Signed-off-by: Vlastimil Babka (SUSE) <vbabka@kernel.org >
2026-06-03 18:20:43 +02:00
..
2025-05-21 08:41:16 -06:00
2025-01-28 15:10:40 -07:00
2026-04-21 12:19:01 -06:00
2026-03-14 08:57:15 -06:00
2026-02-06 07:29:19 -07:00
2026-04-08 13:21:35 -06:00
2026-03-16 16:15:00 -06:00
2026-04-01 10:21:13 -06:00
2026-02-16 14:16:27 -07:00
2026-03-09 07:21:53 -06:00
2025-05-21 08:41:16 -06:00
2025-02-20 07:59:56 -07:00
2026-05-03 23:21:40 -06:00
2026-02-04 07:23:45 -07:00
2026-03-26 20:28:28 -06:00
2026-02-11 15:20:44 -07:00
2026-01-05 17:08:20 -07:00
2026-01-16 12:51:50 -05:00
2026-04-21 12:19:06 -06:00
2024-11-06 13:55:38 -07:00
2026-06-03 18:20:43 +02:00
2026-04-13 16:22:30 -07:00
2026-02-21 17:09:51 -08:00
2026-02-04 07:23:45 -07:00
2026-04-28 16:08:56 -06:00
2026-04-28 16:08:56 -06:00
2026-03-16 16:15:00 -06:00
2026-03-16 16:15:00 -06:00
2026-03-16 16:15:00 -06:00
2026-03-16 16:15:00 -06:00
2026-04-21 20:14:39 -06:00
2026-02-04 07:23:45 -07:00
2026-02-21 17:09:51 -08:00
2026-03-16 15:32:59 -06:00
2024-12-27 10:08:21 -07:00
2026-05-03 23:21:23 -06:00
2026-05-03 23:21:23 -06:00
2026-04-13 16:22:30 -07:00
2026-03-09 07:21:54 -06:00
2025-08-27 11:24:15 -06:00
2026-02-04 07:23:45 -07:00
2024-04-22 19:31:18 -06:00
2026-03-16 16:14:14 -06:00
2026-03-16 16:14:14 -06:00
2026-02-11 20:31:21 -07:00
2026-01-27 11:10:46 -07:00
2026-04-21 19:18:34 -06:00
2025-11-03 08:31:26 -07:00
2026-03-09 07:21:54 -06:00
2025-11-26 09:37:10 -07:00
2026-02-04 07:23:45 -07:00
2026-04-21 12:19:08 -06:00
2026-04-08 13:21:35 -06:00
2026-04-21 12:19:01 -06:00
2026-04-21 12:18:54 -06:00
2026-04-21 12:19:03 -06:00
2025-11-03 08:31:26 -07:00
2026-02-04 07:23:45 -07:00
2025-09-08 13:20:46 -06:00
2024-10-29 13:43:28 -06:00
2026-04-08 13:21:30 -06:00
2025-10-22 10:51:20 -06:00
2026-01-13 15:18:07 -05:00
2026-01-21 11:50:59 -07:00
2026-04-20 14:57:21 -06:00
2026-04-08 13:21:30 -06:00
2026-05-06 04:58:56 -06:00
2026-03-09 07:21:54 -06:00
2026-03-23 12:41:57 +01:00
2024-02-09 09:04:39 -07:00
2026-04-30 06:57:20 -06:00
2026-01-22 09:21:16 -07:00
2026-03-16 16:14:14 -06:00
2025-07-18 12:34:56 -06:00
2026-05-06 04:58:56 -06:00
2026-04-13 16:22:30 -07:00
2026-01-19 19:55:30 -07:00
2024-11-06 13:55:38 -07:00
2026-02-21 17:09:51 -08:00
2026-04-29 16:40:08 -07:00
2026-04-01 10:21:13 -06:00