jbd2_journal_start_reserved(9)
π jbd2_journal_start_reserved(9) β from the Kernel API Manual
okay so bestie, welcome to the glow-up of jbd2_journal_start_reserved, straight outta the Kernel API Manual β¨ she's a little niche but she's iconic, trust.
π NAME
jbd2_journal_start_reserved β start a reserved handle. literally that's her whole job. no cap.
β¨ SYNOPSIS
int jbd2_journal_start_reserved (handle_t *handle , unsigned int type ,
unsigned int line_no );
three args, one int back. she's lowkey low-maintenance like that. π«Ά
π ARGUMENTS
handleβ the handle you wanna start, bestie. like, the actual one. πtypeβ this one's just for handle statistics. bookkeeping vibes only, she's not out here changing behaviour. πline_noβ also just for handle statistics. yes queen, log that line number. πΈ
π¦ DESCRIPTION
okay so picture this: you already reserved a handle earlier with jbd2_journal_reserve, right? this function is the part where you finally bring her to life. it attaches handle to the running transaction β or, if there's like, no transaction running at all, it just creates one. main character energy, she makes it happen either way. β
now here's the fun part: unlike jbd2_journal_start, this function cannot block on journal commit, checkpointing, or similar stuff. so no sitting around waiting, she's not about that life. π
but β and this is the important bit β it can block on memory allocation or on a frozen journal though. so like, don't get too comfortable. π
and the return situation: 0 on success, non-zero on error, and in the error case the handle is freed. so yeah, on error she's gone, don't touch her after that. fr fr. π
π SEE ALSO
kernel file ./fs/jbd2/transaction.c, plus the whole friend group:
jbd2_journal_start(9)jbd2_journal_extend(9)jbd2__journal_restart(9)jbd2_journal_lock_updates(9)jbd2_journal_unlock_updates(9)jbd2_journal_get_write_access(9)jbd2_journal_get_create_access(9)jbd2_journal_get_undo_access(9)jbd2_journal_set_triggers(9)jbd2_journal_dirty_metadata(9)jbd2_journal_forget(9)jbd2_journal_stop(9)jbd2_journal_try_to_free_buffers(9)jbd2_journal_invalidate_folio(9)
and that's the page, bestie!! π§ from ./fs/jbd2, dated October 2026, filed under jbd2_journal_start_reserved(9) β mwah, go forth and start those reserved handles 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