nfsd_file_lru_cb(9)
π nfsd_file_lru_cb(9) β or, the kernel API manual's main character β¨
okay bestie, welcome to the Kernel API Manual entry for nfsd_file_lru_cb(9) β yes that's the whole name, yes it's a mouthful, we love her anyway π«Ά
πΈ NAME πΈ
nfsd_file_lru_cb β Examine an entry on the LRU list π
β SYNOPSIS β
enum lru_status nfsd_file_lru_cb (struct list_head *item , struct
struct list_lru_one *lru , void *arg );
no cap, that's the whole signature β she takes three things and returns an enum lru_status. iconic behavior honestly π
π ARGUMENTS π
itemβ the LRU entry we're examining, like the little guy under the microscope πlruβ the LRU that's calling the shots, the controlling one πargβ the dispose list, just vibing in the third slot π
π¦ DESCRIPTION π¦
so the whole point of this function is checking out one single entry on the LRU list. that's it, that's the gig β¨
and here's the return value tea, bestie β memorize these, they matter:
LRU_REMOVEDβ item was removed from the LRU, she's outta there πLRU_ROTATEβ item is to be moved to the LRU tail, off to the back of the line πLRU_SKIPβ item cannot be evicted, hard pass, not today π
fr fr, those three statuses are the entire contract β no extra lore, that's just what it says π
π SEE ALSO π
Kernel file ./fs/nfsd/filecache.c β go read the source, iykyk π
and the whole friend group of related pages, because she does not exist in a vacuum:
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_cond_queue(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)
not me listing all twenty of them β every single one gets a shoutout, that's the rule π β¨
and that's the page, bestie π this lil manual came from ./fs/nfsd and it's dated October 2026, so likeβ¦ mark your calendar π. mwah, go read the source, 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