Skip to main content

plan_inode_allocation

Function plan_inode_allocation 

Source
pub fn plan_inode_allocation<F>(
    sb: &Superblock,
    groups: &[BlockGroupDescriptor],
    is_dir: bool,
    hint_group: u32,
    bitmap_reader: F,
) -> Result<InodeAllocationPlan>
where F: FnMut(u64) -> Result<Vec<u8>>,
Expand description

Plan allocation of a single inode. For directories, uses a simplified Orlov heuristic to spread dirs across groups; for regular files, prefers the hint_group (typically the parent directory’s group).