nfsd_file_queue_for_close(9)
π nfsd_file_queue_for_close(9) β a Kernel API Manual moment β¨
okay so bestie, welcome to the Kernel API Manual, and buckle up because this one's a little baddie with a very specific job π
β¨ NAME β¨
nfsd_file_queue_for_close β the girl whose whole personality is trying to close out any open nfsd_files for an inode π«Ά
πΈ SYNOPSIS πΈ
void nfsd_file_queue_for_close(struct inode *inode, struct list_head *dispose);
π¦ ARGUMENTS π¦
inodeβ the inode on which to close out nfsd_files. like, this is the one we're cleaning up after πdisposeβ the list on which to gather nfsd_files to close out. it's the lil handbasket we toss 'em in π§Ί
π DESCRIPTION π
so. an nfsd_file represents a struct file that's being held open on behalf of nfsd. periodt. but here's the tea π β an open file can block other activity (such as leases), or cause undesirable behavior (e.g. spurious silly-renames when reexporting NFS). not the vibe, honestly.
this function is intended to find open nfsd_files when this sort of conflicting access occurs, and then attempt to close those files out. she shows up, she handles it π₯
she populates the dispose list with entries that have already had their refcounts go to zero. and ngl, the actual free of an nfsd_file can be expensive π so we leave it up to the caller whether it wants to wait or not. main character choice, your call bestie π«Ά
π SEE ALSO π
all the sisters, cousins and neighbors β keeping the whole friend group together, iykyk π
- Kernel file
./fs/nfsd/filecache.c nfsd_file_check_write_error(9)nfsd_file_put(9)nfsd_file_put_local(9)nfsd_file_file(9)nfsd_file_dispose_list_delayed(9)nfsd_file_net_dispose(9)nfsd_file_lru_cb(9)nfsd_file_cond_queue(9)nfsd_file_close_inode(9)nfsd_file_close_inode_sync(9)nfsd_file_close_export(9)__nfsd_file_cache_purge(9)nfsd_file_cache_purge(9)nfsd_file_is_cached(9)nfsd_file_acquire_gc(9)nfsd_file_acquire(9)nfsd_file_acquire_local(9)nfsd_file_acquire_opened(9)nfsd_file_acquire_dir(9)nfsd_fsnotify_recalc_mask(9)
ok that's the whole page, no filler, no gatekeeping π go close some files bestie β
sign-off szn π β this cutie lives under ./fs/nfsd, dated October 2026, and that's the whole manual entry. slay, study it, love it π
π
π¦ 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