jbd2_journa...write_access(9)
β¨ jbd2_journal_get_write_access(9) β¨
okay bestie, welcome to the Kernel API Manual π this one's from the jbd2 corner of the kernel and it's literally the "hey, I'm about to touch this" heads-up for metadata. let's get into it π«Ά
πΈ NAME πΈ
jbd2_journal_get_write_access β notify intent to modify a buffer for metadata (not data!!) update π
π¦ SYNOPSIS π¦
int jbd2_journal_get_write_access (handle_t *handle , struct buffer_head
*bh );
like yes the wrapping is kinda unhinged but that's the signature, no cap β¨
π ARGUMENTS π
handleβ the transaction you're adding these buffer modifications to. it's giving "which tab is this going in" energy ποΈbhβ thebhyou're gonna use for metadata writes. the actual buffer head, the main character π«
β RETURN β
error code, or 0 on success π (0 = slay, anything else = read the error code, bestie)
π₯ DESCRIPTION π₯
okay so this is the important bit π in full data journalling mode the buffer may be of type BJ_AsyncData β and why? because we're "writeing" a buffer which is also part of a shared mapping. yeah, the manpage really does spell it writeing in quotes, i'm not fixing it, i'm just reporting the vibes π
so: metadata, not data. don't get it twisted π§
π SEE ALSO π
Kernel file ./fs/jbd2/transaction.c β that's where the real lore lives π and the whole jbd2 friend group:
jbd2_journal_start(9)jbd2_journal_start_reserved(9)jbd2_journal_extend(9)jbd2__journal_restart(9)jbd2_journal_lock_updates(9)jbd2_journal_unlock_updates(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)
π cute lil sign-off: this page lives under ./fs/jbd2 and it's dated October 2026 β yes, the future, we're ahead of schedule, periodt π go forth and get that write access, 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