Thread (36 messages) 36 messages, 4 authors, 2024-02-22

Re: [PATCH v2 07/13] mm/gup: Refactor record_subpages() to find 1st small page

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2024-01-15 18:38:17
Also in: linux-arm-kernel, linux-riscv, lkml

On Wed, Jan 03, 2024 at 05:14:17PM +0800, peterx@redhat.com wrote:
From: Peter Xu <peterx@redhat.com>

All the fast-gup functions take a tail page to operate, always need to do
page mask calculations before feeding that into record_subpages().

Merge that logic into record_subpages(), so that it will do the nth_page()
calculation.

Signed-off-by: Peter Xu <peterx@redhat.com>
---
 mm/gup.c | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help