nfs_remove_bad_delegation(9)
π nfs_remove_bad_delegation(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this is a Linux kernel entry, and today's main character is nfs_remove_bad_delegation, which handles delegations that are, and I cannot stress this enough, unusable π
β¨ NAME β¨
nfs_remove_bad_delegation β handle delegations that are unusable π«Ά
πΈ SYNOPSIS πΈ
void nfs_remove_bad_delegation (struct inode *inode , const nfs4_stateid
*stateid );
Like, yes, that's the whole signature. No return value. She just does things π
π ARGUMENTS π
inodeβ the inode to process π literally just "the inode you're processing", that's the whole vibestateidβ the delegation's stateid π the little ID tag that says which delegation we're talking about
π¦ DESCRIPTION π¦
so here's the tea β β this is a decision tree, and it's giving very "two paths diverged in a yellow wood":
If the server ACK-ed our FREE_STATEID, then congrats, queen β clean up the delegation π β¨
Else? mark it and keep the revoked state. Not me keeping the revoked state π that's the whole point, no cap.
lowkey important: those are the only two outcomes in this function. Don't invent a third one, bestie, I'm begging π
π SEE ALSO π
okay this list is long, but every single one of these is iconic in her own right, so we're listing them all, periodt:
Kernel file ./fs/nfs/delegation.c
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)nfs_inode_evict_delegation(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_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)
bestie that's a whole friend group and they all live in ./fs/nfs π§π
and that's the page!! from ./fs/nfs, dated October 2026 β slay, go read the source, 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