fscrypt_put_encryption_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ fscrypt_put_encryption_info ✨

okay so this is a page from the Kernel API Manual, and the function we're stanning today is fscrypt_put_encryption_info(9) β€” say it with me, it's giving cleanup era πŸ’…

πŸŽ€ NAME πŸŽ€

fscrypt_put_encryption_info β€” free most of an inode's fscrypt data 🧹✨

🌸 SYNOPSIS 🌸

void fscrypt_put_encryption_info (struct inode *inode );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • inode β€” an inode being evicted πŸ‘‹ like it's literally packing its bags and moving out, bestie

πŸ’– DESCRIPTION πŸ’–

So here's the tea: this frees the inode's fscrypt_inode_info. πŸ—‘οΈβœ¨

Filesystems must call this when the inode is being evicted β€” no cap, it's mandatory, don't skip it πŸ™ˆ

And the good news? An RCU grace period need not have elapsed yet. 😌 So you don't gotta wait around for that whole situation to wrap up first β€” lowkey convenient, fr fr.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/crypto/keysetup.c β€” and while you're there, check out the whole friend group:


okay that's the whole page, you ate that 🫢 source is ./fs/crypto, dated October 2026, and the manual name is fscrypt_put_encryption_info(9) in case you forgot already πŸ’€πŸ’–βœ¨

πŸ“¦ where this page comes from