kernel_optimize_test/fs/ext4
Theodore Ts'o 2de770a406 ext4: fix potential buffer head leak when add_dirent_to_buf() returns ENOSPC
Previously add_dirent_to_buf() did not free its passed-in buffer head
in the case of ENOSPC, since in some cases the caller still needed it.
However, this led to potential buffer head leaks since not all callers
dealt with this correctly.  Fix this by making simplifying the freeing
convention; now add_dirent_to_buf() *never* frees the passed-in buffer
head, and leaves that to the responsibility of its caller.  This makes
things cleaner and easier to prove that the code is neither leaking
buffer heads or calling brelse() one time too many.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Curt Wohlgemuth <curtw@google.com>
Cc: stable@kernel.org
2009-11-23 07:25:49 -05:00
..
acl.c
acl.h
balloc.c
bitmap.c
block_validity.c
dir.c
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
ext4.h ext4: skip conversion of uninit extents after direct IO if there isn't any 2009-11-10 10:48:04 -05:00
extents.c ext4: Fix return value of ext4_split_unwritten_extents() to fix direct I/O 2009-11-06 04:01:23 -05:00
file.c
fsync.c
hash.c
ialloc.c
inode.c ext4: skip conversion of uninit extents after direct IO if there isn't any 2009-11-10 10:48:04 -05:00
ioctl.c
Kconfig
Makefile
mballoc.c
mballoc.h
migrate.c
move_extent.c
namei.c ext4: fix potential buffer head leak when add_dirent_to_buf() returns ENOSPC 2009-11-23 07:25:49 -05:00
resize.c
super.c Revert "ext4: Remove journal_checksum mount option and enable it by default" 2009-11-02 10:15:27 -08:00
symlink.c
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c
xattr.h