nilfs_pallo...bitmap_block(9)
π nilfs_palloc_get_bitmap_block β Kernel API Manual
okay so bestie, we're in the nilfs_pallo...bitmap_block(9) page, which lives in the Kernel API Manual β¨ and it's literally one function, but she's an important one. Let's get into it π«Ά
πΈ NAME πΈ
nilfs_palloc_get_bitmap_block β get buffer head of a bitmap block
like, that's the whole vibe. she fetches the buffer head for a bitmap block. iconic behavior only π
β¨ SYNOPSIS β¨
int nilfs_palloc_get_bitmap_block (struct inode *inode , unsigned long
group , int create , struct buffer_head **bhp );
yes the signature is chunky, no we're not scared of her π
π ARGUMENTS π
okay so here's who's showing up to the function:
inodeβ inode of metadata file using this allocator. she's the main character, the file that's running the whole allocator situation πgroupβ group number. which group are we talking about bestie, be specific π¦createβ create flag. the "are we making a new one or not" flag πΈbhpβ pointer to store the resultant buffer head. she's an out-param, she holds the buffer head when all is said and done π
π₯ RETURN π₯
0 on success, or a negative error code on failure. slay when it's 0, sad girl hours when it's negative π
π¦ SEE ALSO π¦
she does NOT roll alone β she's part of a whole friend group over in the 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_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)
literally the entire allocator friend group, go say hi π«Ά
anyway that's the page bestie!! this one's sourced from ./fs/nilfs2 and dated October 2026, and the whole thing is filed under the Kernel API Manual β mwah, go read the rest of the nilfs_palloc_*(9) girlies, they ate π
β¨π
π¦ 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