drbd_al_shrink(9)
π 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 lockdevice->act_logwithlc_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
- 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