mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
udmabuf: udmabuf_create pin folio codestyle cleanup
[ Upstream commit164fd9efd4] This patch aim to simplify the memfd folio pin during the udmabuf create. No functional changes. This patch create a udmabuf_pin_folios function, in this, do the memfd pin folio and then record each pinned folio, offset. This patch simplify the pinned folio record, iter by each pinned folio, and then record each offset in it. Compare to iter by pgcnt, more readable. Suggested-by: Vivek Kasireddy <vivek.kasireddy@intel.com> Signed-off-by: Huan Yang <link@vivo.com> Acked-by: Vivek Kasireddy <vivek.kasireddy@intel.com> Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240918025238.2957823-5-link@vivo.com Stable-dep-of:f49856f525("udmabuf: fix memory leak on last export_udmabuf() error path") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
004da42b8e
commit
8e86e9909a
1 changed files with 76 additions and 61 deletions
Loading…
Add table
Add a link
Reference in a new issue