[LTP] Fwd: [PATCH v3] mem/hugetlb: shift an empty region to use in hugemmap02.c

Li Wang liwang@redhat.com
Thu Oct 15 05:06:03 CEST 2015


Hi,

On Wed, Oct 14, 2015 at 7:53 PM, Cyril Hrubis <chrubis@suse.cz> wrote:

> Hi!
> > hmm, check the return value here is not good, that would make confused in
> > range_is_mapped() used. I'd like to handle the situation by the function
> > itself.
>
> Then we are back at passing the cleanup callback to the function so that
> we can pass it to the tst_brkm(). Otherwise the nr_hugepages that has
> been changed in the test setup() wouldn't be restored.
>
>
Sure, I got your point, the function should be like:

int range_is_mapped(void (*cleanup_fn) (void), unsigned long low, unsigned
long high)
{
   ...
}



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


More information about the Ltp mailing list