]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: release number of pages of a folio
authorKundan Kumar <kundan.kumar@samsung.com>
Wed, 11 Sep 2024 06:49:34 +0000 (12:19 +0530)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Sep 2024 13:24:01 +0000 (07:24 -0600)
commitd3bfbfb1248498656cd25c51e41c1e31219bd0dd
tree77b5c25b9a8f912a652b81863e5bfa359823da07
parented9832bc08db29874600eb066b74918fe6fc2060
mm: release number of pages of a folio

Add a new function unpin_user_folio() to put the refs of a folio by
npages count.

The check for BIO_PAGE_PINNED flag is removed as it is already checked
in bio_release_pages().

Signed-off-by: Kundan Kumar <kundan.kumar@samsung.com>
Tested-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://lore.kernel.org/r/20240911064935.5630-4-kundan.kumar@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/mm.h
mm/gup.c