]> git.ipfire.org Git - thirdparty/kmod.git/commit - libkmod/libkmod-index.c
index-mm: allocate values inline into node, strings points to mmap.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sat, 10 Dec 2011 15:04:43 +0000 (13:04 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sat, 10 Dec 2011 15:04:43 +0000 (13:04 -0200)
commitd09154644814b6f013ce24b6eb7fed076230c916
tree07cf0148e91e9c3bf4f351d3220ca6b3cf2513b5
parent148226ed92077527ccfc9f38eff6e7771714449e
index-mm: allocate values inline into node, strings points to mmap.

For mmap mode, we can avoid allocating and copying strings from the
mmap'ed memory.

With that we have fixed length "struct index_mm_value" that can be
allocated inline with "struct index_mm_node".
libkmod/libkmod-index.c