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 */
53
51
ulint size, /*!< in: block size, up to UNIV_PAGE_SIZE */
54
52
ibool* lru) /*!< in: pointer to a variable that will be assigned
55
53
TRUE if storage was allocated from the LRU list
57
55
or NULL if the LRU list should not be used */