Skip to content
Commit 81def6b9 authored by Joern Engel's avatar Joern Engel
Browse files

Simplify and fix pad_wbuf



A comment in the old code read:
        /* The math in this function can surely use some love */

And indeed it did.  In the case that area->a_used_bytes is exactly
4096 bytes below segment size it fell apart.  pad_wbuf is now split
into two helpers that are significantly less complicated.

Signed-off-by: default avatarJoern Engel <joern@logfs.org>
parent 19321917
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment