37
37
/**********************************************************************//**
38
38
Allocate a block. The thread calling this function must hold
41
41
if lru != NULL. This function should only be used for allocating
42
42
compressed page frames or control blocks (buf_page_t). Allocated
43
43
control blocks must be properly initialized immediately after
44
44
buf_buddy_alloc() has returned the memory, before releasing
46
46
@return allocated block, possibly NULL if lru == NULL */
51
53
ulint size, /*!< in: block size, up to UNIV_PAGE_SIZE */
52
54
ibool* lru) /*!< in: pointer to a variable that will be assigned
53
55
TRUE if storage was allocated from the LRU list
55
57
or NULL if the LRU list should not be used */