nilfs_palloc...t_blockgroup(9)
π nilfs_palloc_init_blockgroup β NAME β¨
okay so bestie, this one is nilfs_palloc_init_blockgroup β it's the lil setup function that initializes the private variables for the allocator π and yes, we're in the Kernel API Manual, so put your kernel hat on, it's giving very "deep in fs/nilfs2" energy πΈ
π SYNOPSIS
int nilfs_palloc_init_blockgroup (struct inode *inode , unsigned int entry_size );
literally that's it, that's the whole vibe check π
π¦ ARGUMENTS
inodeβ the inode of the metadata file that's using this allocator, like that's the main character of this operation πentry_sizeβ the size of the persistent object, no cap, that's the number you gotta hand over π
β RETURN
0 on success, or a negative error code on failure π like if it comes back negative, something went wrong, periodt π
π§ SEE ALSO
bestie there are SO many siblings in this family, buckle up π
all of these live in the Kernel file ./fs/nilfs2/alloc.c:
nilfs_palloc_groups_per_desc_block(9)nilfs_palloc_groups_count(9)nilfs_palloc_group(9)nilfs_palloc_desc_blkoff(9)nilfs_palloc_bitmap_blkoff(9)nilfs_palloc_group_desc_nfrees(9)nilfs_palloc_group_desc_add_entries(9)nilfs_palloc_entry_blkoff(9)nilfs_palloc_desc_block_init(9)nilfs_palloc_delete_block(9)nilfs_palloc_get_desc_block(9)nilfs_palloc_get_bitmap_block(9)nilfs_palloc_delete_bitmap_block(9)nilfs_palloc_get_entry_block(9)nilfs_palloc_delete_entry_block(9)nilfs_palloc_group_desc_offset(9)nilfs_palloc_bitmap_offset(9)nilfs_palloc_entry_offset(9)nilfs_palloc_find_available_slot(9)nilfs_palloc_rest_groups_in_desc_block(9)nilfs_palloc_count_desc_blocks(9)nilfs_palloc_mdt_file_can_grow(9)nilfs_palloc_count_max_entries(9)nilfs_palloc_prepare_alloc_entry(9)nilfs_palloc_commit_alloc_entry(9)nilfs_palloc_commit_free_entry(9)nilfs_palloc_abort_alloc_entry(9)nilfs_palloc_prepare_free_entry(9)nilfs_palloc_abort_free_entry(9)nilfs_palloc_freev(9)
ok that's the whole squad, go read them all, iykyk π«Ά
π cute sign-off
this lil page comes to you from the source ./fs/nilfs2 and it's dated October 2026 β so like, very future, very slay β and the page itself answers to the name nilfs_palloc...t_blockgroup(9) if u ever need to find it again π bye bestie, go initialize some blockgroups π₯
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms