commit | d9759b1e4081cc45b958d8ffd06607260cb5557e | [log] [tgz] |
---|---|---|
author | Shaohua Li <ShLi@fusionio.com> | Thu Jan 17 13:28:15 2013 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Jan 17 13:28:15 2013 +0100 |
tree | 076a9c59c1afea48f1d8a932a45ca1a3f99125fa | |
parent | 99db656470de6175c85d21f55aaf0a30337aa011 [diff] |
Make hugetlbfs maping work If it's a file mapping, flags must be MAP_HARED; If it's an anonymous mapping, flags must be MAP_PRIVATE|MAP_ANONYMOUS|MAP_HUGETLB (can be shared, but doesn't matter here). Signed-off-by: Jens Axboe <axboe@kernel.dk>