bforget(9)
π bforget(9) β the "nvm bestie" of kernel API manual pages β¨
okay so picture this: it's a Kernel API Manual page, the title is bforget(9), and it is literally the most relatable function in the whole buffer head cinematic universe. it's giving "we're not doing that anymore" energy. let's get into it π«Ά
β¨ NAME β¨
bforget β discard any dirty data in a buffer. that's it. that's the whole vibe. she forgets. on purpose. π
πΈ SYNOPSIS πΈ
void bforget (struct buffer_head *bh );
look at her. one argument. zero drama. iconic. π
π ARGUMENTS π
bhβ the buffer to forget. yes literally, this is the one you're ghosting. be normal about it bestie π¦
π DESCRIPTION π
okay so here's the tea β β you call this function instead of brelse if the data you wrote to a buffer no longer needs to be written back. like, the writeback? cancelled. not happening. it's not coming to the function.
what she does is clear the buffer's dirty flag π so that writeback of this buffer will be skipped entirely. no flag, no writeback, no problem. slay.
π fr fr do not just swap this in for brelse anywhere β only when that data genuinely does not need to be written back. she's a specialist, not a generalist.
π§ CONTEXT π§
any context. literally any. the versatility?? we love a low-maintenance queen πβ¨
π₯ SEE ALSO π₯
- kernel file
./include/linux/buffer_head.h brelse(9)__bread(9)get_nth_bh(9)
go read those too, iykyk π
okay that's the whole page, no cap. this little masterpiece lives in ./include/linux and the version stamp says October 2026, and yes it's still titled bforget(9) because she's consistent like that π bye bestie, go clear some dirty flags responsibly π
β¨
π¦ 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