nfs_inode_re...m_delegation(9)
π nfs_inode_reclaim_delegation β kernel API manual, bestie edition
okay so this is a page from the Kernel API Manual (yes, the kernel has lore, and yes, it's giving documentation era). Today's main character is nfs_inode_reclaim_delegation(9) β say that five times fast, I dare you π
β¨ NAME β¨
nfs_inode_reclaim_delegation β the function that handles a delegation reclaim request. That's it, that's the vibe. π«Ά
πΈ SYNOPSIS πΈ
void nfs_inode_reclaim_delegation (struct inode *inode , const struct
cred *cred , fmode_t type , const nfs4_stateid *stateid , unsigned long
pagemod_limit , u32 deleg_type );
no cap, that's the whole signature β copy it exactly if you're typing it out, she's picky about her pointers and her spacing π
π¦ ARGUMENTS π¦
okay so this function takes six things and every single one of them matters, so let's go through them one by one like we're doing a vibe check on each parameter π
inodeβ the inode we're processing. the literal subject of the whole operation. main character energy, honestly πcredβ the credential to use for the request. like, who's allowed to be doing this. bring your ID bestie πͺͺtypeβ the delegation type. it's anfmode_t, so it's mode-flavored. iconic β¨stateidβ the delegation stateid. aconst nfs4_stateid *, because we're looking, not touching πpagemod_limitβ the write delegation"space_limit". yes, the original putsspace_limitin quotes, so we keep it in quotes, periodt πdeleg_typeβ the raw delegation type. au32, and importantly raw, so don't go confusing it with the processedtypeup there β they are not the same girl, don't merge them π€
lowkey the biggest flex here is thattypeanddeleg_typeare two separate arguments and you absolutely must not swap them. iykyk π§
π SEE ALSO π
the kernel file this lives in is ./fs/nfs/delegation.c β that's the address, that's the whole neighborhood π‘
and now, the delegation cinematic universe, in the exact order the page gives it. buckle up bestie, it's a long one π
nfs_mark_delegation_referenced(9)nfs4_have_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_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)
likeβ¦ twenty-four cross-references. twenty-four. she ate and left absolutely no crumbs π₯π
and that's the page!! π source is ./fs/nfs, dated October 2026, and the whole thing is filed under nfs_inode_re...m_delegation(9) β yes the title is abbreviated with literal dots, no that's not a typo on my end, that's just how she's listed π bye bestie, go reclaim some delegations responsibly π
β¨
π¦ 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