do_commit(9)
π do_commit(9) π
okay so this page is from the Kernel API Manual, and it's giving "commit the journal" main character energy. bestie, let's get into it π«Άβ¨
πΈ NAME πΈ
do_commit β commit the journal. periodt π
β¨ SYNOPSIS β¨
int do_commit (struct ubifs_info *c );
π ARGUMENTS π
cβ UBIFS file-system description object. that's the whole arg, no cap π¦
π₯ DESCRIPTION π₯
So this function implements UBIFS commit. literally its whole thing β¨
β οΈ heads up bestie: it has to be called with commit lock locked. not optional, not a vibe, it's required π
It returns zero in case of success and a negative error code in case of failure. so: 0 = slay, negative = something went off π
π¦ SEE ALSO π¦
Kernel file ./fs/ubifs/commit.c and the whole friend group:
run_bg_commit(9)ubifs_bg_thread(9)ubifs_commit_required(9)ubifs_request_bg_commit(9)wait_for_commit(9)ubifs_run_commit(9)ubifs_gc_should_commit(9)struct idx_node(9)dbg_old_index_check_init(9)dbg_check_old_index(9)
bye bestie, this was do_commit(9) β source/version: ./fs/ubifs Β· date: October 2026 β ily, go commit that journal responsibly πβ¨
π¦ 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