gfs2_flush_revokes(9)
π gfs2_flush_revokes β the kernel API manual, but make it make sense
okay so bestie, you're reading the page for gfs2_flush_revokes(9) from the Kernel API Manual, and honestly? she's a little baddie with a big job. let's get into it π
β¨ NAME β¨
gfs2_flush_revokes β add as many revokes to the system transaction as we can π«Ά
πΈ SYNOPSIS πΈ
void gfs2_flush_revokes (struct gfs2_sbd *sdp );
like, that's it. that's the whole call. no return value, no drama. π
π¦ ARGUMENTS π¦
sdpβ the GFS2 superblock π (yes, the superblock, main character energy fr fr)
π DESCRIPTION π
okay so here's the tea β β our usual strategy is to defer writing revokes as much as we can, because we're lowkey manifesting that we'll eventually overwrite the journal, and that would make those revokes justβ¦ go away β¨ iconique behaviour, no notes.
but that changes when we flush the log. at that point, there will likely be some left-over space in the last revoke block of that transaction π and we are not about to waste it.
so what do we do? we fill that space with additional revokes for blocks that have already been written back π§ββοΈ basically it's free real estate β comes at no cost now β and it saves us from having to keep track of those blocks on the AIL2 list later. ate and left no crumbs, honestly π₯
ngl this one's a "why didn't we always do this" moment and i'm obsessed π
π SEE ALSO π
the whole friend group, in the order the page says it π«Ά:
Kernel file ./fs/gfs2/log.c, plus:
gfs2_struct2blk(9)gfs2_remove_from_ail(9)gfs2_ail1_start_one(9)gfs2_ail1_flush(9)gfs2_ail1_start(9)gfs2_ail1_empty_one(9)gfs2_ail1_empty(9)gfs2_log_is_empty(9)gfs2_log_release_revokes(9)gfs2_log_release(9)__gfs2_log_try_reserve(9)__gfs2_log_reserve(9)gfs2_log_try_reserve(9)gfs2_log_reserve(9)log_distance(9)calc_reserved(9)gfs2_write_log_header(9)log_write_header(9)gfs2_ail_drain(9)empty_ail1_list(9)gfs2_trans_drain(9)__gfs2_log_flush(9)gfs2_merge_trans(9)gfs2_log_commit(9)gfs2_log_shutdown(9)gfs2_logd(9)
and that's the whole page, bestie π this cutie lives in ./fs/gfs2 and the version/date situation is October 2026 β so yeah, she's from the future, slay πβ¨
π¦ 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