gfs2_trans_add_data(9)
β¨ NAME β¨
gfs2_trans_add_data β bestie, this one adds a databuf to the transaction π
(it lives in the Kernel API Manual, section 9, iykyk π«Ά)
π¦ SYNOPSIS π¦
void gfs2_trans_add_data (struct gfs2_glock *gl , struct buffer_head *bh );
π ARGUMENTS π
glβ the inode glock that's associated with the buffer, she's the main character of this pairing πbhβ the buffer you're adding, no cap, this is the actual thing going in π
πΈ DESCRIPTION πΈ
Okay so this one is used in journaled data mode. We need to journal the data block the exact same way we journal metadata in the functions above β same energy, different block β¨. The difference is that here we've got a tag, and that tag is two __be64's: one being the block number (as per meta data), and one being a flag that says whether the data block needs escaping or not π¦. Which means β and this is the part where you go "wait, what" β we need a new log entry for each 251 or so data blocks π. Not an enormous overhead, lowkey fine, but it's twice as much as for normal metadata blocks. It's giving "small price to pay" ππ
β SEE ALSO β
- Kernel file
./fs/gfs2/trans.cβ go read the source, bestie, she ate π₯
Later, babes π«Ά β this cutie came out of ./fs/gfs2, in the October 2026 era, and yes it's gfs2_trans_add_data(9) from the Kernel API Manual, 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