nilfs_palloc..._alloc_entry(9)
β¨ nilfs_palloc_prepare_alloc_entry β¨
Okay bestie, welcome to the Kernel API Manual page for nilfs_palloc..._alloc_entry(9) β yes that's the truncated little title, she's shy π β and honestly? This one is a whole vibe: it's the "get ready to get ready" function for allocating a persistent object. Let's get into it π
πΈ NAME πΈ
nilfs_palloc_prepare_alloc_entry β literally just prepare to allocate a persistent object. That's the whole thing. She preps, she doesn't commit. Main character energy of setting up your outfit the night before π«Ά
β SYNOPSIS β
int nilfs_palloc_prepare_alloc_entry (struct inode *inode , struct
nilfs_palloc_req *req , bool wrap );
That signature is giving "three args, no notes" π
π¦ ARGUMENTS π¦
inodeβ the inode of the metadata file that's using this allocator. Like, whose house are we doing this in πreqβ anilfs_palloc_reqstructure that gets exchanged for the allocation. It's the little paper you hand over and get stamped πwrapβ aboolthat says whether to wrap around. Do we loop back to the start or nah π
π RETURN π
So on success you get 0 β iconic, flawless, we love a zero π
On failure you get one of these negative error codes, and no cap, these are exactly the ones:
-EIOβ I/O error (including metadata corruption). Yikes π the data's acting up.-ENOMEMβ Insufficient memory available. Girl needs RAM and got none π-ENOSPCβ Entries exhausted (No entries available for allocation). The shelf is empty fr fr π-EROFSβ Read only filesystem. Can't write, won't write, periodt π«
π SEE ALSO π
Kernel file ./fs/nilfs2/alloc.c β and honestly, the whole girl gang is here, so let me introduce every single one of them, no skipping π
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_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)
Bestie note π«Ά: -EIO here specifically covers metadata corruption too, so if you see it, don't just assume the disk had a moment β the docs say it's I/O error including metadata corruption. Handle with care π
And that's the page, mwah π Signing off from the Kernel API Manual, living in the ./fs/nilfs2 directory, dated October 2026 β she's a nilfs_palloc..._alloc_entry(9) girlie and she ate, fr fr π
β¨π
π¦ 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