[LTP] [PATCH] syscalls/move_pages: move_pages() can return positive value

Jan Stancek jstancek@redhat.com
Tue Aug 28 12:19:40 CEST 2018


----- Original Message -----
> Hi!
> >  		ret = numa_move_pages(0, TEST_PAGES, pages, NULL, status, 0);
> > -		if (ret != 0) {
> > +		if (ret == -1) {
> 
> Maybe we should go for (ret < 0) but other than that this looks good.

Agreed, we don't check for other negative values, so we better report
those as failures too.

Jan

> 
> --
> Cyril Hrubis
> chrubis@suse.cz
> 


More information about the ltp mailing list