linux-hardened/fs/logfs
Joern Engel 81def6b986 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>
2010-03-28 13:00:08 +02:00
..
compr.c
dev_bdev.c Plug memory leak in writeseg_end_io 2010-03-27 11:19:14 +01:00
dev_mtd.c
dir.c Prevent schedule while atomic in __logfs_readdir 2010-03-27 11:19:15 +01:00
file.c
gc.c
inode.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/joern/logfs 2010-03-06 13:18:03 -08:00
journal.c
Kconfig
logfs.h
logfs_abi.h
Makefile
readwrite.c Prevent data corruption in logfs_rewrite_block() 2010-03-28 12:40:42 +02:00
segment.c Simplify and fix pad_wbuf 2010-03-28 13:00:08 +02:00
super.c Use deactivate_locked_super 2010-03-27 11:19:16 +01:00