• marko's avatar
    branches/zip: Clarify that buf_buddy_alloc() should only be used for · 8b00501b
    marko authored
    allocating compressed page frames or their control blocks.  Also note
    that if buf_buddy_alloc() is used for allocating a control block,
    it must be initialized before releasing buf_pool->mutex.
    
    buf_page_init_for_read(): When the page hash check fails after
    buf_buddy_alloc(), free the uninitialized control block before freeing
    the compressed page frame.  This fixes a potential error in
    buf_buddy_relocate_block().
    8b00501b
buf0buddy.h 2.41 KB