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:  Isaac J. Manjarres <isaacm@codeaurora.org>
Isaac J. Manjarres <isaacm@codeaurora.org>
Loading
Please register or sign in to comment
