mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-29 13:59:07 +08:00
linux/genalloc.h: Update due to API changes
This commit is contained in:
parent
77938ac3e3
commit
48e33f00e4
@ -88,7 +88,7 @@ gen_pool_alloc(struct gen_pool *gp, size_t size)
|
|||||||
|
|
||||||
chunks = (size + (1 << gp->gen_chunk_shift) - 1) >> gp->gen_chunk_shift;
|
chunks = (size + (1 << gp->gen_chunk_shift) - 1) >> gp->gen_chunk_shift;
|
||||||
mtx_lock(&gp->gen_lock);
|
mtx_lock(&gp->gen_lock);
|
||||||
blkno = blist_alloc(gp->gen_list, chunks);
|
blkno = blist_alloc(gp->gen_list, &chunks, chunks);
|
||||||
mtx_unlock(&gp->gen_lock);
|
mtx_unlock(&gp->gen_lock);
|
||||||
|
|
||||||
if (blkno == SWAPBLK_NONE)
|
if (blkno == SWAPBLK_NONE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user