fork_hash_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fork_hash_lock(9) β€” Kernel API Manual ✨

okay bestie, welcome to the Kernel API Manual page for fork_hash_lock(9) β€” yes the whole page is literally named after the function, main character energy only πŸ’–


🌸 NAME 🌸

fork_hash_lock β€” fork a hash lock because it has run out of increments on the duplicate PBN. like it hit the cap, it's done, time to split 🫢


⭐ SYNOPSIS ⭐

void fork_hash_lock (struct hash_lock *old_lock , struct data_vio
*new_agent );

that's it, that's the whole signature πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • old_lock β€” the hash lock you're forking. the og. the one that ran out of increments πŸ’€
  • new_agent β€” the data_vio that's gonna be the agent for the brand new lock πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: this thing transfers the new agent and any lock waiters over to a brand new hash lock instance, and that new instance takes the place of the old lock in the lock map. slay, seamless ✨

the old lock? it doesn't get retired or anything dramatic β€” it remains active, but it will not update advice. that's it, that's the whole trade-off, no cap πŸ™ˆ


πŸ’œ SEE ALSO πŸ’œ

like, go read these too, iykyk β€” kernel file ./drivers/md/dm-vdo/dedupe.c and Introduction(9), plus:


and that's the page bestie πŸ§šπŸ’– this one comes to you from ./drivers/md/dm-vdo, dated October 2026 β€” fork_hash_lock(9), periodt ✨

πŸ“¦ where this page comes from