diff options
| author | Christoph Hellwig <hch@lst.de> | 2025-11-13 09:39:47 +0100 |
|---|---|---|
| committer | Vlastimil Babka <vbabka@suse.cz> | 2025-11-23 12:28:16 +0100 |
| commit | 1742d97df628de55c0df1a0eb6eefb27136ee890 (patch) | |
| tree | 112e012382673685e5b7d99ce21f4f7795549565 /tools/lib/python/abi/helpers.py | |
| parent | 3d2492401d3cdb8e9e1276c3af5f1cd0c8a2b076 (diff) | |
mempool: factor out a mempool_alloc_from_pool helper
Add a helper for the mempool_alloc slowpath to better separate it from the
fast path, and also use it to implement mempool_alloc_preallocated which
shares the same logic.
[hughd@google.com: fix lack of retrying with __GFP_DIRECT_RECLAIM]
[vbabka@suse.cz: really use limited flags for first mempool attempt]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20251113084022.1255121-7-hch@lst.de
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'tools/lib/python/abi/helpers.py')
0 files changed, 0 insertions, 0 deletions
