nfs_inode_evict_delegation(9)
π nfs_inode_evict_delegation(9)
okay bestie, so this is nfs_inode_evict_delegation(9) straight out of the Kernel API Manual β yes, the real one, the grown-up kernel docs, and no I will not calm down about it β¨
π NAME π
nfs_inode_evict_delegation β return that delegation, and do not reclaim opens while you're at it π«Ά
π¦ SYNOPSIS π¦
void nfs_inode_evict_delegation (struct inode *inode );
πΈ ARGUMENTS πΈ
inodeβ the inode you're processing, she's the main character here π
π DESCRIPTION π
So what this does is return the delegation, but it is not out here protecting you against delegation reclaims. Like, at all. Which means it's genuinely only safe to call from nfs4_clear_inode. Read that again. It's giving "do not freestyle this" energy, okay? π
The one thing it is guaranteed to do: it always frees the delegation structure. Always. Every time. Periodt π
lowkey important bestie β this thing does not protect against delegation reclaims, so if you call it from anywhere other than nfs4_clear_inode that's on you and the vibe check will not be in your favour π
π SEE ALSO π
Kernel file ./fs/nfs/delegation.c β and honestly the whole delegation friend group, they all show up here:
nfs_mark_delegation_referenced(9)nfs4_have_delegation(9)nfs_inode_reclaim_delegation(9)nfs_inode_set_delegation(9)nfs_client_return_marked_delegations(9)nfs4_inode_return_delegation(9)nfs4_inode_set_return_delegation_on_close(9)nfs4_inode_return_delegation_on_close(9)nfs4_inode_make_writeable(9)nfs_expire_all_delegations(9)nfs_server_return_all_delegations(9)nfs_remove_bad_delegation(9)nfs_expire_unreferenced_delegations(9)nfs_async_inode_return_delegation(9)nfs_delegation_find_inode(9)nfs_delegation_mark_reclaim(9)nfs_delegation_reap_unclaimed(9)nfs_mark_test_expired_all_delegations(9)nfs_test_expired_all_delegations(9)nfs_reap_expired_delegations(9)nfs_delegations_present(9)nfs4_refresh_delegation_stateid(9)nfs4_copy_delegation_stateid(9)nfs4_delegation_flush_on_close(9)
and that's the whole page, bestie, you ate that π
signing off with the receipts: this one lives in ./fs/nfs, dated October 2026, straight from the Kernel API Manual itself β mwah ππβ¨
π¦ 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