• Joern Engel's avatar
    Simplify and fix pad_wbuf · 81def6b9
    Joern Engel authored
    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>
    81def6b9
segment.c 23.9 KB