Thread (75 messages) 75 messages, 5 authors, 2023-01-24

Re: [PATCH v8 10/10] mm: Renumber FOLL_PIN and FOLL_GET down

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2023-01-24 14:14:55
Also in: linux-fsdevel, linux-mm, lkml

On Tue, Jan 24, 2023 at 02:11:50PM +0000, David Howells wrote:
Jason Gunthorpe [off-list ref] wrote:
quoted
if (cleanup_flags & PAGE_CLEANUP_UNPIN)
   gup_put_folio(folio, 1, true);
else if (cleanup_flags & PAGE_CLEANUP_PUT)
   gup_put_folio(folio, 1, false);
gup_put_folio() doesn't take a bool - it takes FOLL_PIN and FOLL_GET:
My point was to change that to take a 'bool unpin' because FOLL_PIN is
not to be used outside gup.c

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