Skip to contentSkip to conversation

syscalls/madvise04: new test for madvise(MADV_DONTNEED)

PATCH zhaogongyi via ltp 1 participant 1 message Oct 12, 2022

lore
Share & tools
lore
#0 lore raw

Hi Cyril,

Yes, thanks for your review.

I have resubmit the patch with a new version.

Regards,
Gongyi

Quoted 15 lines

Hi!
The MADV_DONTNEED has been implemented for hugepages since:

commit 90e7e7f5ef3f712da992d505aee2d921797c3f96

Author: Mike Kravetz <[email protected]>
Date:   Thu Mar 24 18:13:18 2022 -0700

mm: enable MADV_DONTNEED for hugetlb mappings

So for newer kernels this actually works fine. I guess that we should change the test to expect the call to pass for v5.18 and newer.

--
Cyril Hrubis
[email protected]

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp