Simplify and fix pad_wbuf
authorJoern Engel <joern@logfs.org>
Sun, 28 Mar 2010 10:47:09 +0000 (12:47 +0200)
committerJoern Engel <joern@logfs.org>
Sun, 28 Mar 2010 11:00:08 +0000 (13:00 +0200)
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: Joern Engel <joern@logfs.org>

No differences found