Re: [PATCH RFC 10/13] mm/gup: Merge pXd huge mapping checks

2024-03-07 Thread Jason Gunthorpe
On Wed, Mar 06, 2024 at 06:41:44PM +0800, pet...@redhat.com wrote: > From: Peter Xu > > Huge mapping checks in GUP are slightly redundant and can be simplified. > > pXd_huge() now is the same as pXd_leaf(). pmd_trans_huge() and > pXd_devmap() should both imply pXd_leaf(). Time to merge them int

[PATCH RFC 10/13] mm/gup: Merge pXd huge mapping checks

2024-03-06 Thread peterx
From: Peter Xu Huge mapping checks in GUP are slightly redundant and can be simplified. pXd_huge() now is the same as pXd_leaf(). pmd_trans_huge() and pXd_devmap() should both imply pXd_leaf(). Time to merge them into one. Signed-off-by: Peter Xu --- mm/gup.c | 7 +++ 1 file changed, 3 i