pub fn plan_inode_allocation<F>(
sb: &Superblock,
groups: &[BlockGroupDescriptor],
is_dir: bool,
hint_group: u32,
bitmap_reader: F,
) -> Result<InodeAllocationPlan>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).