Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5dbd5d63 authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

ion: Derive CMA buffer struct page without using priv_virt



The priv_virt field can be useful for storing other meta-data
associated with a buffer besides the pointer to the struct page
associated with the buffer. Additionally, the struct page
pointer can be derived by looking at the sg-list structure for
the buffer. Thus, use the sg-list structure to derive the struct
page pointer for a CMA buffer, instead of the priv_virt field.

Change-Id: I1740ac56c4268ece315144fb2c3d8f48d9608c41
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent 7718d1b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment