nfs_setattr_update_inode(9)
π nfs_setattr_update_inode(9) π
okay so this is a page from the Kernel API Manual bestie, section 9, and the star of the show is nfs_setattr_update_inode β the little function whose whole personality is "the setattr call happened, now let's make the inode metadata match". β¨
π¦ NAME π¦
nfs_setattr_update_inode β update inode metadata after a setattr call. that's it, that's the vibe. π
πΈ SYNOPSIS πΈ
void nfs_setattr_update_inode (struct inode *inode , struct iattr *attr
, struct nfs_fattr *fattr );
she returns void (no little gift back, just vibes) and takes three pointers. slay. π
β¨ ARGUMENTS β¨
inodeβ pointer tostruct inode. the main character of this whole operation, honestly. πattrβ pointer tostruct iattr. the attributes we're working with. πfattrβ pointer tostruct nfs_fattr. the NFS-flavoured attribute buddy. π¦
π NOTE π
so here's the tea: we do this in the *proc.c in order to ensure that it works for things like exclusive creates too. like, that's the whole reason. no cap. π₯
genuinely do keep that in mind β the placement in *proc.c isn't random, it's the thing making exclusive creates behave. π
π«Ά SEE ALSO π«Ά
the whole friend group, in order (yes, all of them, i'm not skipping anyone π):
- Kernel file
./fs/nfs/inode.c nfs_sync_mapping(9)nfs_vmtruncate(9)nfs_close_context(9)nfs_revalidate_inode(9)nfs_clear_invalid_mapping(9)nfs_revalidate_mapping(9)nfs_check_inode_attributes(9)nfs_fattr_set_barrier(9)nfs_inode_attrs_cmp_generic(9)nfs_inode_attrs_cmp_monotonic(9)nfs_inode_attrs_cmp_strict_monotonic(9)nfs_inode_attrs_cmp(9)nfs_inode_finish_partial_attr_update(9)nfs_refresh_inode(9)nfs_post_op_update_inode(9)nfs_post_op_update_inode_force_wcc_locked(9)nfs_post_op_update_inode_force_wcc(9)
go read them, i believe in you π
and that's the page!! sign-off time π§: it lives at ./fs/nfs, the date on it is October 2026, and the whole thing is filed under nfs_setattr_update_inode(9) in the Kernel API Manual. bye bestie, go update some inodes πβπ
π¦ 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