> > +static void run_test(int fd, unsigned int start_off,
> > +                unsigned int end_off, unsigned int align)
> 
> Nit: prefer to-tab alignment in MM land.

Yes, I noticed Andrew (thanks!) corrected it and added to -mm mm-new branch.

> > +{
> > +   if (!check_dio_alignment(start_off, end_off, align))
> > +           return;
> 
> Is there a reason we just perform that at the beginning of
> run_dio_using_hugetlb(), avoiding run_test() entirely?

That will make the run_dio_using_hugetlb() have too many args and
uncomfortable to read, yes, it's more likely personal preference.
 
> In general, LGTM, thanks!
> 
> Feel free to add my
> 
> Acked-by: David Hildenbrand (Arm) <[email protected]>

Thanks a lot!

-- 
Regards,
Li Wang


Reply via email to