nilfs_palloc..._alloc_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 β€” the nilfs_palloc_req structure 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:


ngl the funniest part is nilfs_palloc_prepare_alloc_entry(9) and nilfs_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