gfs2_end_log_write_bh(9)
π NAME π
Okay so bestie, this is gfs2_end_log_write_bh(9) from the Kernel API Manual β¨ β and itβs literally the function that ends the log write of pagecache data with buffers. Periodt. π
β¨ SYNOPSIS β¨
void gfs2_end_log_write_bh (struct gfs2_sbd *sdp , struct folio *folio ,
size_t offset , size_t size , blk_status_t error );
π ARGUMENTS π
sdpβ The superblock π«Άfolioβ The folio πΈoffsetβ The first byte within the folio that completed β¨sizeβ The number of bytes that completed π«errorβ The i/o status π
π¦ DESCRIPTION π¦
So what it does is find the relevant buffers, unlock them, and set the error flag according to the status of the i/o request. No cap. π₯
Youβll see this used when the log is writing data that has an in-place version pinned in the pagecache. Thatβs the whole vibe check. π§
π SEE ALSO π
- Kernel file
./fs/gfs2/lops.c gfs2_pin(9)gfs2_unpin(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_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)
mwah π β source/version: ./fs/gfs2, dated October 2026. Your kernel bestie is signing off π«Άπ
π¦ 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