nfs_request_add_commit_list(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a struct nfs_page πŸ‘‘ this is the request in question
  • cinfo β€” 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_CLEAN bit βœ…
  • it updates the cinfo count 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_ hold cinfo->lock, but the caller must be holding the nfs_page lock. 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 πŸ“–βœ¨


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