Re: [patch] madvise.2: specify MADV_REMOVE returns EINVAL for hugetlbfs

2015-04-04 Thread Michael Kerrisk (man-pages)
On 04/02/2015 11:21 PM, David Rientjes wrote: > madvise(2) actually returns with error EINVAL for MADV_REMOVE when used > for hugetlb vmas, not EOPNOTSUPP, and this has been the case since > MADV_REMOVE was introduced in commit f6b3ec238d12 ("madvise(MADV_REMOVE): > remove pages from tmpfs shm b

[patch] madvise.2: specify MADV_REMOVE returns EINVAL for hugetlbfs

2015-04-02 Thread David Rientjes
madvise(2) actually returns with error EINVAL for MADV_REMOVE when used for hugetlb vmas, not EOPNOTSUPP, and this has been the case since MADV_REMOVE was introduced in commit f6b3ec238d12 ("madvise(MADV_REMOVE): remove pages from tmpfs shm backing store"). Specify the exact behavior. Signed-o