nfs_request_add_commit_list(9)
π nfs_request_add_commit_list(9) β¨
okay bestie, so this is a page from the Kernel API Manual β yes, the kernel manual, we're doing big-brain stuff today π§ π β and it's all about nfs_request_add_commit_list. grab a lil snack and let's get into it π
πΈ NAME πΈ
nfs_request_add_commit_list β literally just add a request to a commit list, that's the whole vibe π
β¨ SYNOPSIS β¨
void nfs_request_add_commit_list (struct nfs_page *req , struct
nfs_commit_info *cinfo );
no cap, it returns void β nothing comes back, so don't go looking for a return value, she doesn't have one π
π¦ ARGUMENTS π¦
reqβ pointer to astruct nfs_pageπ this is the request in questioncinfoβ holds the list lock and the accounting info π§Ύ like, it's the keeper of the numbers
π DESCRIPTION π
okay so here's what goes down:
- it sets the
PG_CLEANbit β - it updates the
cinfocount of how many outstanding requests are requiring a commit π₯ - and it updates the MM page stats too π (yep, all three, she's an overachiever, periodt)
β οΈ important rules, bestie, do NOT skip these: the caller must _not_ holdcinfo->lock, but the caller must be holding thenfs_pagelock. not one, not the other way β exactly that way. flip it and you're gonna have a bad time ππ
π SEE ALSO π
kernel file ./fs/nfs/write.c β go read it, iykyk πβ¨
nfs_folio_find_head_request(9)nfs_wait_on_request(9)nfs_request_add_commit_list_locked(9)nfs_request_remove_commit_list(9)nfs_wb_folio_reclaim(9)nfs_wb_folio(9)
and that's the whole page, you ate that π«Ά this little gem lives in ./fs/nfs, dated October 2026, and it's giving very October-2026-core of it. mwah ππ
π¦ 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