gfs2_readahead(9)
πΈ gfs2_readahead(9) πΈ
okay so bestie, welcome to the Kernel API Manual, section 9 β this one's about gfs2_readahead, and it's literally the "grab a whole bunch of pages at once" girlie of the GFS2 world π
β¨ NAME β¨
gfs2_readahead β Read a bunch of pages at once π«Ά
β¨ SYNOPSIS β¨
void gfs2_readahead (struct readahead_control *rac );
β¨ ARGUMENTS β¨
racβ the read-ahead control structure π that's it, that's the whole argument list, she's low maintenance
β¨ DESCRIPTION β¨
okay so here are the notes, and you're gonna want to read them because they're giving important π«Ά
- This is only for readahead, so we can simply ignore any things which are slightly inconvenient (such as locking conflicts between the page lock and the glock) and return having done no I/O. It's obviously not something we'd want to do on too regular a basis. Any I/O we ignore at this time will be done via
readpagelater. π like yeah we're ghosting that I/O for now but it WILL get handled, no cap - We don't handle stuffed files here β we let
readpagedo the honours. she's the main character for that one π mpage_readaheaddoes most of the heavy lifting in the common case. not me making someone else carry the bags π but fr frgfs2_block_mapis relied upon to setBH_Boundaryin the right places. trust her with the boundary placement, she ate π₯
β¨ SEE ALSO β¨
Kernel file ./fs/gfs2/aops.c π plus the whole friend group:
gfs2_get_block_noalloc(9)gfs2_write_jdata_folio(9)__gfs2_jdata_write_folio(9)gfs2_jdata_writeback(9)gfs2_writepages(9)gfs2_write_jdata_batch(9)gfs2_write_cache_jdata(9)gfs2_jdata_writepages(9)stuffed_read_folio(9)gfs2_read_folio(9)gfs2_internal_read(9)adjust_fs_space(9)gfs2_bmap(9)gfs2_release_folio(9)
and that's the whole page bestie!! π¦ this came straight out of ./fs/gfs2 and it's dated October 2026 β so yeah, fresh off the source tree, slay β¨π 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