nilfs_pallo...e_free_entry(9)
β¨ nilfs_palloc_prepare_free_entry β Kernel API Manual energy β¨
okay so bestie, welcome to the Kernel API Manual corner of the internet π this one's a little function from the nilfs2 allocator and honestly? it's giving "getting your ducks in a row before the actual ducks get deleted." let's go π¦
π NAME π
nilfs_palloc_prepare_free_entry β prepare to deallocate a persistent object π
like, it's the prep step. the "let me get ready first" step. the main character energy before the main character shows up β¨
πΈ SYNOPSIS πΈ
int nilfs_palloc_prepare_free_entry (struct inode *inode , struct
nilfs_palloc_req *req );
π¦ ARGUMENTS π¦
inodeβ the inode of the metadata file that's using this allocator, iykyk π«Ά this is who's in charge of the block-groups situation.reqβ thenilfs_palloc_reqstructure that gets exchanged for the removal π so it's the little request envelope you hand over, and it comes back all set up for the freeing.
β RETURN β
returns 0 on success π or a negative error code on failure π (yes, negative β kernel functions are like that, don't @ me).
π₯ SEE ALSO π₯
the whole squad, fr fr β this is the nilfs2 allocator group chat and everyone's in it π
Kernel file ./fs/nilfs2/alloc.c π
nilfs_palloc_groups_per_desc_block(9)nilfs_palloc_groups_count(9)nilfs_palloc_init_blockgroup(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_abort_free_entry(9)nilfs_palloc_freev(9)
bestie note: if you're actually in the kernel and you skip the prepare β commit / abort pipeline, that's not slay, that's a bug π read the friends above before you touch anything, periodt.
and that's the whole page, no cap π
cute sign-off time π this little beauty comes from ./fs/nilfs2 and the date on it is October 2026 β yes, future energy, we love to see it β mwah, go free some persistent objects responsibly π
β¨
π¦ 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