]> git.ipfire.org Git - thirdparty/lxc.git/commit
parse: prefault config file with MAP_POPULATE 2667/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 2 Oct 2018 14:40:13 +0000 (16:40 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 2 Oct 2018 14:40:13 +0000 (16:40 +0200)
commit2291ea4a1a40f67d76a108e96cee83cb65038f9a
treec682dfaa9f0e81831dc4116b4fa1b299bfeca84d
parent907e1332012e4e99ee0f4bde098b96e638f79a58
parse: prefault config file with MAP_POPULATE

When we call lxc_file_for_each_line_mmap() we will always parse the
whole config file. Prefault it in case it is really long to optimize
performance.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/parse.c