]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod-index: do not pre-populate mmap
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Fri, 2 Mar 2012 23:33:26 +0000 (20:33 -0300)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Fri, 2 Mar 2012 23:33:26 +0000 (20:33 -0300)
commit2e2e252bd44b7f0bbfc62cd04869dcb7ff073514
tree6c9d2c8c0babab709deb49a89740e28f61c21750
parent9c5f057c7c5924ee3121bf1abbdca59544f8e4fc
libkmod-index: do not pre-populate mmap

If we tell mmap to populate all the indexes and they are big, this will
impact load time. Let them be mapped as they are used.
libkmod/libkmod-index.c
libkmod/libkmod-index.h
libkmod/libkmod.c