nfs_request_..._list_locked(9)
π nfs_request_..._list_locked(9) π
okay so this is a page from the Kernel API Manual β yes, the actual kernel one, and yes, we're gonna make it make sense. bestie, this function is lowkey just a little bookkeeping gremlin and it's iconic for it π
β¨ NAME β¨
nfs_request_add_commit_list_locked β adds a request to a commit list. that's the whole job. that's what she does π
π¦ SYNOPSIS π¦
void nfs_request_add_commit_list_locked (struct nfs_page *req , struct
list_head *dst , struct nfs_commit_info *cinfo );
returns void, so likeβ¦ she doesn't report back. girl just does the thing and leaves πΈ
π ARGUMENTS π
reqβ pointer to astruct nfs_page. the request in question, the main character of this call πdstβ the commit list head. this is where the request gets parked, iykykcinfoβ holds the list lock and the accounting info. it's giving "carries everything in her bag" energy π
π DESCRIPTION π
so here's the tea β this function sets the PG_CLEAN bit, and then it updates the cinfo count of how many outstanding requests still need a commit β plus the MM page stats get updated too. no cap, it's doing three little things at once and honestly? ate.
β οΈ okay this part is IMPORTANT and not a vibe you can skip: the caller must holdNFS_I(cinfo->inode)->commit_mutex, AND thenfs_pagelock. that's on you, not on her. she's locked in the name for a reason, bestie ππ
π SEE ALSO π
- Kernel file
./fs/nfs/write.c nfs_folio_find_head_request(9)nfs_wait_on_request(9)nfs_request_add_commit_list(9)nfs_request_remove_commit_list(9)nfs_wb_folio_reclaim(9)nfs_wb_folio(9)
like a little friend group fr fr π«Ά go read them next, slay β¨
and that's the page!! sign-off time: this one lives at ./fs/nfs, it's dated October 2026, and its title is nfs_request_..._list_locked(9). mwah, go hold that commit_mutex properly bestie ππ§β
π¦ 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