]> Gentwo Git Trees - linux/.git/commit
mm/gup: Add folio_add_pins()
authorSteve Sistare <steven.sistare@oracle.com>
Fri, 25 Oct 2024 13:11:51 +0000 (06:11 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 28 Oct 2024 16:24:23 +0000 (13:24 -0300)
commita2ad1b8101a36c927bcbd1317475b9576c352155
treed2641b8751555a9f860ca974efd57fb0021d8449
parente2d8fe9148b79ed1cbf0663edc988db7769173dc
mm/gup: Add folio_add_pins()

Export a function that adds pins to an already-pinned huge-page folio.
This allows any range of small pages within the folio to be unpinned later.
For example, pages pinned via memfd_pin_folios and modified by
folio_add_pins could be unpinned via unpin_user_page(s).

Link: https://patch.msgid.link/r/1729861919-234514-2-git-send-email-steven.sistare@oracle.com
Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Suggested-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
include/linux/mm.h
mm/gup.c