]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/rsrc: use unpin_user_folio
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 19 Apr 2025 17:47:04 +0000 (18:47 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 21 Apr 2025 11:10:04 +0000 (05:10 -0600)
commitea76925614189bdcb6571e2ea8de68af409ebd56
treeacbb924e3bbefc707a38c514ecd779bfbecfe535
parent8a2dacd49f1d19f4e3a4ebc99d11622cafd1659e
io_uring/rsrc: use unpin_user_folio

We want to have a full folio to be left pinned but with only one
reference, for that we "unpin" all but the first page with
unpin_user_pages(), which can be confusing. There is a new helper to
achieve that called unpin_user_folio(), so use that.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Link: https://lore.kernel.org/r/e0b2be8f9ea68f6b351ec3bb046f04f437f68491.1745083025.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c