commit | 7de92767c20cb72c94609b9c78985526fb84a679 | [log] [tgz] |
---|---|---|
author | Jason Evans <je@fb.com> | Mon Oct 08 17:56:11 2012 -0700 |
committer | Jason Evans <je@fb.com> | Mon Oct 08 18:04:49 2012 -0700 |
tree | 6e6aab107b7d77d575b130b7074824da5f2df234 | |
parent | f4c3f8545beed9f7e606cef7b1d06fae3f630269 [diff] |
Fix mlockall()/madvise() interaction. mlockall(2) can cause purging via madvise(2) to fail. Fix purging code to check whether madvise() succeeded, and base zeroed page metadata on the result. Reported by Olivier Lecomte.