gfs2_page_mkwrite(9)
π¦ gfs2_page_mkwrite(9) π¦
okay so this is a page from the Kernel API Manual, section 9 (iykyk), and it's literally all about gfs2_page_mkwrite β bestie, come sit with me π
β¨ NAME β¨
gfs2_page_mkwrite β make a shared, mmap()ed, page writable π«Ά
πΈ SYNOPSIS πΈ
vm_fault_t gfs2_page_mkwrite (struct vm_fault *vmf );
like, that's the whole signature, no cap β¨
π ARGUMENTS π
vmfβ the virtual memory fault that's carrying the page we want to make writable. like, the page is in there, she's just waiting for her moment π
π DESCRIPTION π
so when the page becomes writable, we've got to make sure we actually have blocks allocated on disk to back that page. periodt. no blocks on disk = no vibe, and we do not do that here π
(don't skip this step, it's giving "homework you can't skip" π)
π₯ SEE ALSO π₯
the kernel file is ./fs/gfs2/file.c, and honestly the whole friend group shows up here:
gfs2_llseek(9)gfs2_readdir(9)do_gfs2_set_flags(9)gfs2_size_hint(9)gfs2_allocate_folio_backing(9)gfs2_mmap(9)gfs2_open_common(9)gfs2_open(9)gfs2_release(9)gfs2_fsync(9)gfs2_file_write_iter(9)calc_max_reserv(9)gfs2_lock(9)gfs2_flock(9)
like, the whole squad, iconic βπ
aaand that's the page!! mwah π it comes to you from ./fs/gfs2, dated October 2026, and yes she's still out here living her best life as gfs2_page_mkwrite(9) ππ
π¦ 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