gfs2_log_write_page(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« 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 β€” the struct 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:

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