nilfs_palloc..._alloc_entry(9)
π nilfs_palloc..._alloc_entry(9) π
okay so real talk bestie, welcome to the Kernel API Manual β yes that Kernel API Manual, the one that lives rent-free in /fs/nilfs2. Today's episode is a short one and honestly kind of a jumpscare, because the page header says nilfs_palloc..._alloc_entry(9) (with the lil ellipsis and everything, not a typo, that's genuinely how it's written) and then the NAME section hits you with a different but extremely related function. Stay with me, it all makes sense π
β¨ NAME β¨
nilfs_palloc_abort_alloc_entry β literally the "nvm, cancel that" of persistent object allocation π«Ά
Like, you were gonna allocate a persistent object, and now you're not. This is the undo button. The "jk". The "actually never mind bestie".
πΈ SYNOPSIS πΈ
void nilfs_palloc_abort_alloc_entry (struct inode *inode , struct nilfs_palloc_req *req );
that's it. that's the whole signature. void return, so no status code to obsess over β it just does the thing π
π¦ ARGUMENTS π¦
inodeβ the inode of the metadata file that's using this allocator. yes, this specific allocator. it's the one holding the vibes, lowkey the main character here πreqβ thenilfs_palloc_reqstructure that got exchanged for the allocation. this is the lil receipt for the allocation you're now cancelling, so keep it safe and hand it back over π
π₯ SEE ALSO π₯
fr fr the whole nilfs2 palloc family is here, and the Kernel file they all live in is ./fs/nilfs2/alloc.c β go say hi:
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_prepare_free_entry(9)nilfs_palloc_abort_free_entry(9)nilfs_palloc_freev(9)
ngl the funniest part isnilfs_palloc_prepare_alloc_entry(9)andnilfs_palloc_commit_alloc_entry(9)are right there in the list, so this page is basically the third act of the allocate-commit-abort trilogy. abort is the one where the plan falls through π
okay that's the whole page, it's giving short and sweet. periodt π
β¨ mwah β¨ this icon was brought to you by ./fs/nilfs2, dated October 2026, and signed off by your local Kernel API Manual bestie. go cancel some allocations responsibly, ily πππ¦
π¦ 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