bh_uptodate_or_lock(9)
π bh_uptodate_or_lock(9) π
okay bestie, welcome to the Kernel API Manual β this one is a tiny little function with main character energy β¨
πΈ NAME πΈ
bh_uptodate_or_lock β literally the vibe check for whether the buffer is uptodate π
β¨ SYNOPSIS β¨
the signature is giving:
int bh_uptodate_or_lock (struct buffer_head *bh );
π ARGUMENTS π
bhβ astruct buffer_head. that's the whole arg, bestie π«Ά
π¦ DESCRIPTION π¦
okay so here's the tea: it returns true if the buffer is up-to-date, and false β with the buffer locked β if it's not. π
that locking detail is lowkey the main character here, so don't miss it, fr fr π
π SEE ALSO π
Kernel file: ./fs/buffer.c β that's where the whole situation lives π
the related squad is:
bio_endio_bh(9)end_buffer_read_sync(9)bh_end_read(9)bh_end_write(9)bh_end_async_write(9)mmb_sync(9)block_dirty_folio(9)mark_buffer_dirty(9)__brelse(9)__bforget(9)bh_submit(9)bdev_getblk(9)__bread_gfp(9)block_invalidate_folio(9)clean_bdev_aliases(9)try_to_free_buffers(9)__bh_read(9)__bh_read_batch(9)
mwah π β with love from the ./fs source/version corner, dated October 2026, on page bh_uptodate_or_lock(9) ππ¦π
π¦ 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