nilfs_ifile_create_inode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ nilfs_ifile_create_inode(9) β€” the "make a new disk inode" girlie πŸŽ€

okay so this is a kernel API manual page, and yes bestie, we're in nilfs_ifile_create_inode(9) territory β€” section 9, kernel-space, very demure, very minding-my-own-business-in-the-filesystem. ✨


πŸ’– NAME πŸ’–

nilfs_ifile_create_inode β€” literally just create a new disk inode. that's the whole vibe. 🫢


🌸 SYNOPSIS 🌸

int nilfs_ifile_create_inode (struct inode *ifile , u64 *out_ino ,
struct buffer_head **out_bh );

like… she takes three things and gives you back an int. iconic behavior honestly. πŸ‘‘


✨ ARGUMENTS ✨

  • ifile β€” the ifile inode. that's your main character right there, she's the metadata file doing all the work πŸ’…
  • out_ino β€” a pointer to a variable where the inode number gets stored. your little souvenir πŸŽ€
  • out_bh β€” a buffer_head that contains the newly allocated disk inode. yes, the whole buffer, no she's not doing halves πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

so nilfs_ifile_create_inode allocates a new inode in the ifile metadata file β€” and then it does two whole things for you, because she's an overachiever:

  • it stores the inode number in the variable pointed to by out_ino ⭐
  • and it stores the ifile's buffer with the disk inode in the location pointed to by out_bh πŸ’–

that's it. that's the function. no cap, she's efficient. 🌈


πŸ”₯ RETURN πŸ”₯

returns 0 on success, or one of these negative error codes if things go sideways (and not in the cute way 😭):

  • -EIO β€” I/O error (including metadata corruption πŸ’€). yeah, corruption. we don't love that.
  • -ENOMEM β€” insufficient memory available. the girlies are out of RAM, tragic πŸ“
  • -ENOSPC β€” no inode left. none. zero. empty. gone. πŸ™ˆ
ngl, if you get -EIO because of metadata corruption, that's a whole situation β€” handle it, don't ignore it bestie πŸ’…

🌟 SEE ALSO 🌟

go read these next, iykyk:


πŸ‘‘ sign-off πŸ‘‘

and that's the page!! she lives in ./fs/nilfs2, dated October 2026, and she's part of the Kernel API Manual β€” so next time you're deep in nilfs2 inode allocation, you'll know exactly what's up. periodt. πŸ’œβœ¨πŸ§š

mwah πŸ’‹ go create some inodes responsibly

πŸ“¦ where this page comes from