drbd_al_shrink(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drbd_al_shrink(9) β€” a Kernel API Manual moment

okay so bestie, welcome to the drbd_al_shrink page from the Kernel API Manual ✨ this one is short and sweet and honestly kind of iconic in a quiet way πŸŽ€


🌸 NAME 🌸

drbd_al_shrink β€” Removes all active extents form the activity log πŸ’«


✨ SYNOPSIS ✨

void drbd_al_shrink (struct drbd_device *device );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • device β€” DRBD device. that's the one, that's the whole vibe 🫢

πŸ’– DESCRIPTION πŸ’–

So what it does: it removes all active extents form the activity log, and before it does that it waits until the reference count of each entry has dropped to 0 first β€” like, of course it waits, she's not messy πŸ’…

Real talk though: you need to lock device->act_log with lc_try_lock / lc_unlock. Do not skip this, bestie, that's the whole safety rail πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/block/drbd/drbd_actlog.c:

like, go read the whole friend group, they're all connected iykyk 🌈


and that's the page!! πŸŽ€ it lives in ./drivers/block/drbd, stamped October 2026 β€” go off, kernel file, we love you πŸ’œβ­

πŸ“¦ where this page comes from