nilfs_palloc_bitmap_offset(9)
π nilfs_palloc_bitmap_offset(9) β the Kernel API Manual page, bestie edition π
okay so real talk, this one lives in the Kernel API Manual and it's called nilfs_palloc_bitmap_offset β and it does exactly one (1) thing: it calculates the byte offset</> of a bitmap block inside the folio that's holding it. that's it. that's the whole job. and honestly? she ate. π¦
β¨ NAME β¨
nilfs_palloc_bitmap_offset β calculate the byte offset of a bitmap block in the folio containing it π
β¨ SYNOPSIS β¨
size_t nilfs_palloc_bitmap_offset (const struct buffer_head *bh );
β¨ ARGUMENTS β¨
bhβ the buffer head of the bitmap block πΈ that's the one and only thing you hand her.
β¨ RETURN β¨
She gives you back the byte offset in the folio of the bitmap block for bh. no cap, that's the return value. π«Ά
β¨ SEE ALSO β¨
so there's a whole squad in ./fs/nilfs2/alloc.c (the Kernel file, iykyk) and she runs with all of them β every single one is listed below, no gatekeeping:
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_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)
like. the whole friend group. ππ
and that's the page!! shoutout to ./fs/nilfs2 for being the home base, this one's dated October 2026, and she's signing off β bestie, go read the source, it's giving main character energy ππβ
π¦ 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