Re: Question on follow_page_mask

2016-02-24 Thread Anshuman Khandual
On 02/24/2016 02:37 AM, Hugh Dickins via Linuxppc-dev wrote: > On Tue, 23 Feb 2016, Kirill A. Shutemov wrote: >> On Tue, Feb 23, 2016 at 06:45:05PM +0530, Anshuman Khandual wrote: >>> Not able to understand the first code block of follow_page_mask >>> function. follow_huge_addr function is expected

Re: Question on follow_page_mask

2016-02-24 Thread Anshuman Khandual
On 02/23/2016 07:33 PM, Kirill A. Shutemov wrote: > On Tue, Feb 23, 2016 at 06:45:05PM +0530, Anshuman Khandual wrote: >> Not able to understand the first code block of follow_page_mask >> function. follow_huge_addr function is expected to find the page >> struct for the given address if it turns o

Re: Question on follow_page_mask

2016-02-23 Thread Hugh Dickins via Linuxppc-dev
On Tue, 23 Feb 2016, Kirill A. Shutemov wrote: > On Tue, Feb 23, 2016 at 06:45:05PM +0530, Anshuman Khandual wrote: > > Not able to understand the first code block of follow_page_mask > > function. follow_huge_addr function is expected to find the page > > struct for the given address if it turns o

Re: Question on follow_page_mask

2016-02-23 Thread Kirill A. Shutemov
On Tue, Feb 23, 2016 at 06:45:05PM +0530, Anshuman Khandual wrote: > Not able to understand the first code block of follow_page_mask > function. follow_huge_addr function is expected to find the page > struct for the given address if it turns out to be a HugeTLB page > but then when it finds the pa

Question on follow_page_mask

2016-02-23 Thread Anshuman Khandual
Not able to understand the first code block of follow_page_mask function. follow_huge_addr function is expected to find the page struct for the given address if it turns out to be a HugeTLB page but then when it finds the page we bug on if it had been called with FOLL_GET flag. page = foll