gfs2_log_write_page(9)
π« gfs2_log_write_page β the Kernel API Manual moment π«
okay bestie, so this one's from the Kernel API Manual (yes, the big-league docs) and honestly it's a tiny little function with a big job. let me put you on π«Ά
πΈ NAME πΈ
gfs2_log_write_page β write one block stored in a page, into the log β¨
like, literally just one block. one. block. into the log. that's the whole vibe π
π¦ SYNOPSIS π¦
void gfs2_log_write_page (struct gfs2_sbd *sdp , struct page *page );
returns nothing (void, she gives nothing back, queen behavior π), takes two things, and that's it.
π ARGUMENTS π
sdpβ the superblock πpageβ thestruct page(yes bestie, the struct page, that's the whole description and we're moving on πββοΈ)
β DESCRIPTION β
so what she actually does: this writes the first block-sized part of the page into the log. only the first block-sized part, not the whole page, don't get it twisted π
now the important tea, and i need you to listen because this is the part that will bite you:
the page must have been allocated from the gfs2_page_pool mempool. no exceptions. that's the whole rule π¨
and also:
after this has been called, ownership has been transferred β the page may be freed at any time π
so like, don't touch it after. don't peek at it. don't be weird about it. she's not yours anymore, you handed her off, periodt π
π₯ SEE ALSO π₯
kernel file ./fs/gfs2/lops.c plus the whole friend group:
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_bh(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)
iykyk π
and that's the page!! sourced from ./fs/gfs2, dated October 2026, and she's filed under gfs2_log_write_page(9) β go read her siblings, mwah πβ¨
π¦ 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