nilfs_write_root_mdt_inode(9)
π nilfs_write_root_mdt_inode(9) π
okay so bestie, welcome to the Kernel API Manual entry for nilfs_write_root_mdt_inode β yes the name is a whole mouthful, yes it's iconic, no we're not skipping any of it π«Ά
β¨ NAME β¨
nilfs_write_root_mdt_inode β the girl whose whole job is exporting root metadata inode info to the on-disk inode π
πΈ SYNOPSIS πΈ
void nilfs_write_root_mdt_inode (struct inode *inode , struct nilfs_inode *raw_inode );
like, that's the whole signature. no return value, she just does the thing and dips β¨
π ARGUMENTS π
inodeβ the inode object of the root metadata file, aka the main character of this whole operation πraw_inodeβ the on-disk inode, the physical bestie she's writing into π¦
π DESCRIPTION π
so what does she actually do? nilfs_write_root_mdt_inode writes the inode information and the bmap data of inode into the inode area of the metadata file β and that metadata file is allocated on the super root block that was created to finalize the log. iykyk π₯
and here's the cute detail: since super root blocks get configured each time, this function zero-fills the unused area of raw_inode. like, not me cleaning up after myself, we love a tidy queen π§Ήβ¨ no cap, that's literally in the spec.
π¦ SEE ALSO π¦
Kernel file ./fs/nilfs2/segment.c and her whole friend group, fr fr:
nilfs_transaction_begin(9)nilfs_transaction_commit(9)nilfs_segctor_reset_segment_buffer(9)nilfs_segctor_zeropad_segsum(9)nilfs_free_segments(9)nilfs_segctor_begin_construction(9)nilfs_prepare_write_logs(9)nilfs_segctor_start_timer(9)nilfs_construct_segment(9)nilfs_construct_dsync_segment(9)nilfs_segctor_accept(9)nilfs_segctor_notify(9)nilfs_segctor_construct(9)nilfs_log_write_required(9)nilfs_segctor_thread(9)nilfs_segctor_destroy(9)nilfs_attach_log_writer(9)nilfs_detach_log_writer(9)
π lowkey a whole squad. go read them too, bestie, they're all right there in ./fs/nilfs2 and they ate π
and that's the page!! π mwah π β this one's brought to you by the ./fs/nilfs2 source and the October 2026 version, from your girl the Kernel API Manual. periodt. ππ¦π
π¦ 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