nfs_request_..._commit_list(9)
π nfs_request_..._commit_list(9) π
okay bestie so this is a page from the Kernel API Manual and it's about one tiny little function that does one tiny little thing, and honestly? iconic of it. her whole job is un-committing a request. that's it. that's the vibe. π
β¨ NAME β¨
nfs_request_remove_commit_list β removes a request from a commit list. she's a remover. a list-leaver. a "you don't have to go home but you can't stay here" girlie. π
πΈ SYNOPSIS πΈ
void nfs_request_remove_commit_list (struct nfs_page *req , struct
nfs_commit_info *cinfo );
like, she returns void because she's not here to give you answers, she's here to do the thing. no cap. β¨
π¦ ARGUMENTS π¦
reqβ a pointer to anfs_page. the actual request in question, the main character of this whole situation π«Άcinfoβ holds the list lock and the accounting info. she's got the receipts, the lock, and the numbers. the responsible friend. π
π₯ DESCRIPTION π₯
so the way this works is: she clears the PG_CLEAN bit β yes, literally un-clean-ing it β and then updates cinfo's count of outstanding requests that require a commit. so the accounting stays honest. very demure, very mindful. π§
that said, she does not update the MM page stats. not her department. not her problem. don't come for her about the MM page stats. π
β οΈ ok this part is serious so listen up bestie: the caller _must_ hold thecinfo->lockand thenfs_pagelock. not "should". not "probably". _must_. no lockies = no touchy. fr fr. π
π SEE ALSO π
if you're obsessed with this one (and why wouldn't you be), the kernel file is ./fs/nfs/write.c and the whole friend group is:
nfs_folio_find_head_request(9)nfs_wait_on_request(9)nfs_request_add_commit_list_locked(9)nfs_request_add_commit_list(9)nfs_wb_folio_reclaim(9)nfs_wb_folio(9)
go read them. be a well-rounded kernel girlie. π
and that's the whole page, bestie, no crumbs left behind. this little gem lives in ./fs/nfs and it's dated October 2026, served up fresh from the Kernel API Manual. mwah, go hold those locks ππ
β¨
π¦ 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