jbd2_journa...lidate_folio(9)
β¨ jbd2_journal_invalidate_folio(9) β¨
okay so this is the kernel API manual page for jbd2_journal_invalidate_folio, bestie π
it's giving lowkey mysterious because the NAME section literally has nothing after the dash β no description, no summary, just the function name and a lonely little -. iconic behavior honestly π
πΈ NAME πΈ
jbd2_journal_invalidate_folio β and that's it, that's the whole name section. no blurb. no filler. main character energy fr fr π
π¦ SYNOPSIS π¦
int jbd2_journal_invalidate_folio (journal_t *journal , struct folio
*folio , size_t offset , size_t length );
that's the whole signature, exactly as written, no cap π₯ four arguments, returns an int, go off king π
π ARGUMENTS π
journalβ the journal you're gonna use for the flush... yes the original really does trail off into...and honestly same, mood πfolioβ the folio you're flushing, that's the one π«Άoffsetβ where the range you want to invalidate starts βlengthβ how long that range is, like the size of the invalidate zone π
π DESCRIPTION π
so basically it reaps the page buffers that contain data in the specified range in the page π§Ήβ¨ clean it up, bestie.
β οΈ heads up: it can return-EBUSYif the buffers are part of the committing transaction and the page is straddlingi_size. no cap, this is a real thing that can happen π
and if that -EBUSY hits? the caller then has to wait for the current commit and try again. that's the whole deal β wait, then retry, periodt π
π SEE ALSO π
kernel file ./fs/jbd2/transaction.c β that's where this lives, iykyk π
and here's the whole friend group, all of them, in order, no skipping π:
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_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)
like... the crossover episode nobody asked for but we all needed π
okay that's the page!! sign-off time π«Ά this one came from ./fs/jbd2 and it's dated October 2026, and the title is, once again, jbd2_journa...lidate_folio(9) β abridged and slaying and slightly truncated in the middle like a text from your bestie at 2am πβ¨ bye bestie, go invalidate those folios 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