do_commit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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