https://github.com/torvalds/linux
Revision 81def6b9862764924a99ac1b680e73ac8c80ac64 authored by Joern Engel on 28 March 2010, 10:47:09 UTC, committed by Joern Engel on 28 March 2010, 11:00:08 UTC
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>
1 parent 1932191
History
Tip revision: 81def6b9862764924a99ac1b680e73ac8c80ac64 authored by Joern Engel on 28 March 2010, 10:47:09 UTC
Simplify and fix pad_wbuf
Tip revision: 81def6b
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 930 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 165.9 KB
Makefile -rw-r--r-- 52.0 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top