Re: [PATCH v4 20/23] mm/gup_benchmark: use proper FOLL_WRITE flags instead of hard-coding "1"

2019-11-13 Thread Ira Weiny
On Tue, Nov 12, 2019 at 08:27:07PM -0800, John Hubbard wrote: > Fix the gup benchmark flags to use the symbolic FOLL_WRITE, > instead of a hard-coded "1" value. > > Also, clean up the filtering of gup flags a little, by just doing > it once before issuing any of the get_user_pages*() calls. This

[PATCH v4 20/23] mm/gup_benchmark: use proper FOLL_WRITE flags instead of hard-coding "1"

2019-11-12 Thread John Hubbard
Fix the gup benchmark flags to use the symbolic FOLL_WRITE, instead of a hard-coded "1" value. Also, clean up the filtering of gup flags a little, by just doing it once before issuing any of the get_user_pages*() calls. This makes it harder to overlook, instead of having little "gup_flags & 1"