__gfs2_log_flush(9)
π« __gfs2_log_flush(9) β the kernel API manual, but make it make sense π«
okay bestie, so this is a page from the Kernel API Manual and the function we're hyping up today is __gfs2_log_flush β yes the double-underscore one, she's built different π
β¨ NAME β¨
__gfs2_log_flush β flush incore transaction(s) π½β¨ (no but literally, that's what she does)
π¦ SYNOPSIS π¦
void __gfs2_log_flush (struct gfs2_sbd *sdp , struct gfs2_glock *gl ,
u32 flags );
like, that's the whole signature, no cap. returns void, so don't go looking for a return value bestie, she gives you nothing back and she's iconic for it π«Ά
πΈ ARGUMENTS πΈ
sdpβ The filesystem. yeah. the whole filesystem. main character energy fr fr πglβ The glock structure to flush. IfNULL, flush the whole incore log β so passingNULLmeans she goes full send on everything πflagsβ The log header flags:GFS2_LOG_HEAD_FLUSH_*and debug flags π (yeah it's a whole family of constants plus the debug ones, noted)
π SEE ALSO π
lowkey the friend group here is huge, so let's do a vibe check on everyone she's linked with π
the kernel source file where she actually lives:
./fs/gfs2/log.c
and the whole crew, exactly as listed (yes all of them, I'm not skipping a single one, that's not the energy we're on β¨):
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_flush_revokes(9)gfs2_write_log_header(9)log_write_header(9)gfs2_ail_drain(9)empty_ail1_list(9)gfs2_trans_drain(9)gfs2_merge_trans(9)gfs2_log_commit(9)gfs2_log_shutdown(9)gfs2_logd(9)
bestie note:__gfs2_log_try_reserve(9)and__gfs2_log_reserve(9)are the underscored twins ofgfs2_log_try_reserve(9)andgfs2_log_reserve(9)β look closely, they're different entries, don't let anyone tell you otherwise π
and that's the whole page, we ate and left no crumbs π
kisses from ./fs/gfs2 β dated October 2026, so mark your calendar babe βπ
π¦ 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