gfs2_pin(9)
π gfs2_pin(9) π
okay so bestie, welcome to gfs2_pin(9) β yes, straight from the Kernel API Manual π
this one is short but iconic, so let's get into it.
πΈ NAME πΈ
gfs2_pin β Pin a buffer in memory π
β¨ SYNOPSIS β¨
void gfs2_pin (struct gfs2_sbd *sdp , struct buffer_head *bh );
π ARGUMENTS π
sdpβ The superblock π that's the main-character superblock right there.bhβ The buffer to be pinned π«Ά literally the buffer getting pinned, no cap.
π¦ DESCRIPTION π¦
okay so the one thing you cannot skip: the log lock must be held when calling this function. That's the whole vibe check, bestie. Log lock not held? Then don't call it. Periodt. π
β οΈ caveat queen: the log lock must be held when calling this function β fr fr, don't forget.
π SEE ALSO π
Kernel file: ./fs/gfs2/lops.c β and these adjacent besties are all here too:
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_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)
catch you later, bestie π this page came from ./fs/gfs2, dated October 2026, and it's gfs2_pin(9) signing off β slay β¨π«Άπ
π¦ 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