Re: [PATCH v3 1/4] mm/gup: add compound page list iterator

2021-02-11 Thread Joao Martins
On 2/10/21 11:20 PM, Jason Gunthorpe wrote: > On Fri, Feb 05, 2021 at 08:41:24PM +, Joao Martins wrote: >> Add an helper that iterates over head pages in a list of pages. It >> essentially counts the tails until the next page to process has a >> different head that the current. This is going

Re: [PATCH v3 1/4] mm/gup: add compound page list iterator

2021-02-10 Thread Jason Gunthorpe
On Fri, Feb 05, 2021 at 08:41:24PM +, Joao Martins wrote: > Add an helper that iterates over head pages in a list of pages. It > essentially counts the tails until the next page to process has a > different head that the current. This is going to be used by > unpin_user_pages() family of

[PATCH v3 1/4] mm/gup: add compound page list iterator

2021-02-05 Thread Joao Martins
Add an helper that iterates over head pages in a list of pages. It essentially counts the tails until the next page to process has a different head that the current. This is going to be used by unpin_user_pages() family of functions, to batch the head page refcount updates once for all passed