start_deduping(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ start_deduping(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… this one's called start_deduping and it's genuinely iconic β€” it's the moment where all your data_vios finally start deduping in parallel against a real, honest-to-goodness copy of their data on disk. no cap. πŸ¦‹


πŸŽ€ NAME πŸŽ€

start_deduping β€” enter the hash lock state where data_vios deduplicate in parallel against a true copy of their data on disk. that's the whole vibe, and honestly? obsessed. ✨


🌸 SYNOPSIS 🌸

void start_deduping (struct hash_lock *lock , struct data_vio *agent ,
       bool agent_is_done );

copy it exactly like that, bestie, don't touch the spacing, it's giving fragile. 😭


πŸ’– ARGUMENTS πŸ’–

  • lock β€” the hash lock. yes. the hash lock. this is the lock we're talking about. πŸ”’
  • agent β€” the data_vio that's out here acting as the agent for the lock. main character energy fr. πŸ‘‘
  • agent_is_done β€” a bool, and it's True only if the agent has already written or deduplicated against its data. like, only then. no exceptions, we don't do "close enough". 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• β€” if the agent itself needs to deduplicate, then an increment for it must already have been claimed from the duplicate lock. that's not optional, that's the whole point. why? because it ensures the hash lock will still have a data_vio holding it. the way that works is lowkey kind of beautiful. 🫢

⚠️ key word: already. this isn't "should probably", it's "must already have been claimed". get that increment first or the hash lock is out here with nobody holding it, and nobody wants that. πŸ’€

🌟 SEE ALSO 🌟

a whole squad, and honestly they ate. every single one is (9), and they all live in the kernel file ./drivers/md/dm-vdo/dedupe.c alongside our girl Introduction(9). πŸŽ€

iykyk πŸ’œ go read them all, i'll wait.


okay that's the page!! this whole thing lives in ./drivers/md/dm-vdo and the version/date stamp on it is October 2026 β€” so yeah, she's from the future, and she's still serving. slay. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from