]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - lib/ext2fs/ext2fs.h
libext2fs: allocate separate memory regions for each inode in the cache
authorTheodore Ts'o <tytso@mit.edu>
Fri, 30 Nov 2012 01:40:21 +0000 (20:40 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 30 Nov 2012 01:40:21 +0000 (20:40 -0500)
commit603e5ebc8bb4b5e75c53ddf1461992f8861b35a1
treea8924c71b4331ce102fa08aa95d0efc30f6adf5d
parent43c4910371a06cdb41c172b62c7d4b81d84a4ddb
libext2fs: allocate separate memory regions for each inode in the cache

The changes to support metadata checksum allocated a single large
array for all of the inodes in the inode cache.  This is slightly more
efficient, but given that the inode cache is small (only 4 inodes) it
doesn't really have that much benefit.  The problem with doing things
this way is that the memory overruns, such as the one fixed in commit
43c4910371a, do not get detected by valgrind.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/ext2fs.h
lib/ext2fs/freefs.c
lib/ext2fs/inode.c