From: Joern Engel Date: Sun, 28 Mar 2010 10:47:09 +0000 (+0200) Subject: Simplify and fix pad_wbuf X-Git-Tag: v2.6.34-rc3~3^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81def6b9862764924a99ac1b680e73ac8c80ac64;p=pandora-kernel.git 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 --- Reading git-diff-tree failed