nfs4_delegat...ush_on_close(9)
π nfs4_delegat...ush_on_close(9) π
okay so this is a page from the Kernel API Manual β yes, the Kernel API Manual, we're in the big leagues now bestie π β and it's all about one very specific little check.
β¨ NAME β¨
nfs4_delegation_flush_on_close β the function that checks whether we absolutely must flush the file on close π€
π¦ SYNOPSIS π¦
bool nfs4_delegation_flush_on_close (const struct inode *inode );
literally returns a bool. that's it. that's the whole vibe check π«
πΈ ARGUMENTS πΈ
inodeβ the inode we're checking, bestie. the thing under inspection. the main character of this function π«Ά
π DESCRIPTION π
so here's the deal: this function peeks at the number of outstanding writes on the file, and compares that against the delegation's 'space_limit' field β yep, that's the exact field name, no cap π
β all to figure out whether the spec requires us to flush the file on close.
think of it as the "do we gotta flush or can we chill" check β¨
π SEE ALSO π
- 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_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)
like, that's the whole delegation friend group fr fr ππ go read them all, they're iconic.
and that's the tea, bestie π this page lives in ./fs/nfs, dated October 2026, and it answers to the name nfs4_delegat...ush_on_close(9) β yes the name is literally abbreviated, don't come for me, that's just how it's printed ππ
π¦ 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