#[repr(C)]pub struct ext4_bcache {
pub cnt: u32,
pub itemsize: u32,
pub lru_ctr: u32,
pub ref_blocks: u32,
pub max_ref_blocks: u32,
pub bdev: *mut ext4_blockdev,
pub dont_shake: bool,
pub lba_root: ext4_bcache_ext4_buf_lba,
pub lru_root: ext4_bcache_ext4_buf_lru,
pub dirty_list: ext4_bcache_ext4_buf_dirty,
}Expand description
@brief Block cache descriptor
Fields§
§cnt: u32@brief Item count in block cache
itemsize: u32@brief Item size in block cache
lru_ctr: u32@brief Last recently used counter
ref_blocks: u32@brief Currently referenced datablocks
max_ref_blocks: u32@brief Maximum referenced datablocks
bdev: *mut ext4_blockdev@brief The blockdev binded to this block cache
dont_shake: bool@brief The cache should not be shaked
lba_root: ext4_bcache_ext4_buf_lba@brief A tree holding all bufs
lru_root: ext4_bcache_ext4_buf_lru@brief A tree holding unreferenced bufs
dirty_list: ext4_bcache_ext4_buf_dirty@brief A singly-linked list holding dirty buffers
Trait Implementations§
Source§impl Clone for ext4_bcache
impl Clone for ext4_bcache
Source§fn clone(&self) -> ext4_bcache
fn clone(&self) -> ext4_bcache
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ext4_bcache
impl Debug for ext4_bcache
impl Copy for ext4_bcache
Auto Trait Implementations§
impl Freeze for ext4_bcache
impl RefUnwindSafe for ext4_bcache
impl !Send for ext4_bcache
impl !Sync for ext4_bcache
impl Unpin for ext4_bcache
impl UnwindSafe for ext4_bcache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more