nilfs_write_root_mdt_inode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


πŸ’€ 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