Make hugetlbfs maping work
authorShaohua Li <ShLi@fusionio.com>
Thu, 17 Jan 2013 12:28:15 +0000 (13:28 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Jan 2013 12:28:15 +0000 (13:28 +0100)
commitd9759b1e4081cc45b958d8ffd06607260cb5557e
tree076a9c59c1afea48f1d8a932a45ca1a3f99125fa
parent99db656470de6175c85d21f55aaf0a30337aa011
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>
memory.c
options.c