nilfs_ifile..._free_inodes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– nilfs_ifile_count_free_inodes πŸ’–

okay bestie, welcome to the nilfs_ifile..._free_inodes(9) page from the Kernel API Manual 🌸 this one is short and sweet, and it’s all about counting free inodes. no cap, the function name is a whole mouthful, but the vibe is basically β€œtell me the max and tell me how many are free.”


✨ NAME ✨

nilfs_ifile_count_free_inodes β€” calculate free inodes count πŸ’…

🌈 SYNOPSIS 🌈

int nilfs_ifile_count_free_inodes (struct inode *ifile , u64 *nmaxinodes
, u64 *nfreeinodes );

πŸŽ€ ARGUMENTS πŸŽ€

  • ifile β€” ifile inode. yep, that’s the whole note: it’s the ifile inode 🫢
  • nmaxinodes β€” current maximum of available inodes count [out] πŸ“€ this is an output param, so a value gets written back here.
  • nfreeinodes β€” free inodes count [out] πŸ“€ another output param β€” this is where the free count lands.

πŸ”₯ RETURN πŸ”₯

Returns 0 on success, or a negative error code on failure. so: zero = slay βœ…, negative = nope 😭. that’s the error-code tea, periodt.

πŸ‘‘ SEE ALSO πŸ‘‘

bestie, these are the related kernel bits to peek at if you want the full NILFS2 ifile lore πŸ‘€ iykyk.

cute sign-off: source ./fs/nilfs2, dated October 2026, on the nilfs_ifile..._free_inodes(9) page β€” mwah, go count those inodes πŸ’‹βœ¨

πŸ“¦ where this page comes from