gfs2_log_write_bh(9)
π« gfs2_log_write_bh(9) π«
okay so bestie, welcome to the kernel API manual page for gfs2_log_write_bh β yes that's the whole title, and yes the manual name is literally just the function name again, we love a self-referential queen π
β¨ NAME β¨
gfs2_log_write_bh β write a buffer's content to the log
π¦ SYNOPSIS π¦
void gfs2_log_write_bh (struct gfs2_sbd *sdp , struct buffer_head *bh );
πΈ ARGUMENTS πΈ
sdpβ the super block, aka the big-picture context for this whole situation πbhβ the buffer pointing to the in-place location, like it literally knows where the thing lives fr fr
β DESCRIPTION β
so here's the tea: this function writes the content of the buffer to the next available location in the log. that's it, that's the whole vibe.
and the sweet part β the buffer will be unlocked once the i/o to the log has completed. so it's not unlocked immediately, it's unlocked when the write actually finishes. patience is a virtue, bestie π§
π₯ SEE ALSO π₯
Kernel file ./fs/gfs2/lops.c β that's where the magic lives, iykyk π
gfs2_pin(9)gfs2_unpin(9)gfs2_end_log_write_bh(9)gfs2_end_log_write(9)gfs2_log_submit_write(9)gfs2_log_alloc_bio(9)gfs2_log_get_bio(9)gfs2_log_write(9)gfs2_log_write_page(9)gfs2_end_log_read(9)gfs2_jhead_folio_search(9)gfs2_jhead_process_page(9)gfs2_find_jhead(9)databuf_lo_before_commit(9)
like, the whole friend group showed up for this one ππ«Ά
and that's the page!! mwah π this little icon came out of ./fs/gfs2 and it's dated October 2026, and if you ever need to find it again it answers to gfs2_log_write_bh(9) β periodt π
π¦ 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