[LTP] [PATCH V2] madvice: new case for madvise(WILLNEED)

Li Wang liwang@redhat.com
Fri Apr 1 07:11:17 CEST 2016


Hello,

> +     if (tst_kvercmp(3, 9, 0) < 0)
>> > +             tst_brkm(TCONF, NULL, "madvise(MADV_WILLNEED) swap file"
>> > +                     "prefetch available only since 3.9");
>> > +
>>
>
I take use of these lines since I misunderstood that 'MASV_WILLNEED' is
involved since 3.9 kernel when I took a look at madvise05.c. But after
reading the MADVISE(2) in Linux Programmer's Manual, I realized that I was
wrong.

Then I tried this madvise06 testcase on both 2.6.18 and 2.6.32 kernel, it
also works well. So I decide to remove the lines in Patch V3.

-- 
Regards,
Li Wang
Email: liwang@redhat.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20160401/4d72b77b/attachment.html>


More information about the ltp mailing list