]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: allocate and free extent records individually
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Jan 2012 18:52:00 +0000 (18:52 +0000)
committerChristoph Hellwig <hch@lst.de>
Wed, 11 Jan 2012 18:52:00 +0000 (18:52 +0000)
commitca30b0cb127974a013303f106c056534d7154878
tree14e97299043a3c423822491d46251247dd149c05
parentffc825859fe48d58119d6bebc5014f99095bb7ce
repair: allocate and free extent records individually

Instead of allocating inode records in chunks and keeping a freelist of them
which gets released to the system memory allocator in one go 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.  In
addition smart allocators like tcmalloc have far less overhead than our
chunk and linked list.

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