fscrypt_put_encryption_info(9)
β¨ 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:
fscrypt_get_encryption_info(9)fscrypt_prepare_new_inode(9)fscrypt_free_inode(9)fscrypt_drop_inode(9)
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
- 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