Function ext4_bcache_alloc

Source
pub unsafe extern "C" fn ext4_bcache_alloc(
    bc: *mut ext4_bcache,
    b: *mut ext4_block,
    is_new: *mut bool,
) -> c_int
Expand description

@brief Allocate block from block cache memory. Unreferenced block allocation is based on LRU (Last Recently Used) algorithm. @param bc block cache descriptor @param b block to alloc @param is_new block is new (needs to be read) @return standard error code