Commit d3bfbfb1 authored by Kundan Kumar's avatar Kundan Kumar Committed by Jens Axboe
Browse files

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: default avatarKundan Kumar <kundan.kumar@samsung.com>
Tested-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
Reviewed-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Link: https://lore.kernel.org/r/20240911064935.5630-4-kundan.kumar@samsung.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent ed9832bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment