[CRIU] [PATCH 8/9] headers: Introduce hashing helpers

Cyrill Gorcunov gorcunov at openvz.org
Mon Apr 1 11:27:39 EDT 2013


They are taken from linux kernel and adopted for
our needs. While I'll need it for converter there
are a bunch of places in crtools which better to
switch to hashing instead of linear search.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 include/hash.h      |  75 ++++++++++++++++++++++++
 include/hashtable.h | 162 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 237 insertions(+)
 create mode 100644 include/hash.h
 create mode 100644 include/hashtable.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-headers-Introduce-hashing-helpers.patch
Type: text/x-patch
Size: 6622 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130401/598c03c9/attachment.bin>


More information about the CRIU mailing list