nfsd_file_cond_queue(9)
β¨ nfsd_file_cond_queue(9) β¨
okay so we're in the Kernel API Manual bestie, and this is the page for nfsd_file_cond_queue β yes the (9) is part of the name, it's giving very "section nine, kernel internals, don't @ me" π
π NAME π
nfsd_file_cond_queue β conditionally unhash and queue a nfsd_file
like, the whole personality is in that one line: sometimes unhash, sometimes queue, sometimes both, we'll get to it πΈ
π¦ SYNOPSIS π¦
void nfsd_file_cond_queue (struct nfsd_file *nf , struct list_head
*dispose );
(no cute shortcut here, it's void, it returns literally nothing, main character energy but make it lowercase)
π ARGUMENTS π
nfβ thenfsd_filewe're attempting to queue. note the word "attempt", she's not making promises πdisposeβ a private list where the successfully-put objects get parked. like a little waiting room for files that are done-done π«Ά
π DESCRIPTION π
okay so the whole storyline: you take an nfsd_file and you unhash it. then you try to get a reference to it, and then you put that reference right back. lowkey chaotic but it's fine π
and here's the plot twist β if that put was the last reference, then it goes on the dispose list. if it wasn't the last one? nothing gets queued. that's the "conditionally" part, she said what she said β¨
β SEE ALSO β
literally the whole friend group, no cap β kernel file ./fs/nfsd/filecache.c plus:
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_queue_for_close(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)
iykyk π
k that's the whole page bestie, go read the filecache source if you want the lore π§
and that's a wrap on <pink>./fs/nfsd</pink>, dated October 2026 β ty for coming to my ted talk, slay, periodt πππ₯
π¦ 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