commit | 81def6b9862764924a99ac1b680e73ac8c80ac64 | [log] [tgz] |
---|---|---|
author | Joern Engel <joern@logfs.org> | Sun Mar 28 12:47:09 2010 +0200 |
committer | Joern Engel <joern@logfs.org> | Sun Mar 28 13:00:08 2010 +0200 |
tree | 8f7a408a355172bfb53bf2e69981a154dde3b01a | |
parent | 193219172691e29813821dc8433317768c6ed1a3 [diff] |
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: Joern Engel <joern@logfs.org>