]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: allocate and free inode records individually
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Jan 2012 18:51:58 +0000 (18:51 +0000)
committerChristoph Hellwig <hch@lst.de>
Wed, 11 Jan 2012 18:51:58 +0000 (18:51 +0000)
commitffc825859fe48d58119d6bebc5014f99095bb7ce
tree8452af8136cc2bb168ac7272590f0b04019396bd
parent62b00e6325060e22b6a749abf0d7fc1ea50b1fd6
repair: allocate and free inode records individually

Instead of allocating inode records in chunks and keeping a freelist of them
which never gets released to the system memory allocator use plain malloc
and free for them.  The freelist just means adding a global lock instead
of relying on malloc and free which could be implemented lockless, and the
freelist is almost completely worthless as we are done allocating new
inode records once we start freeing them in major quantities.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
repair/incore_ino.c