]> xenbits.xensource.com Git - people/julieng/linux-arm.git/commit
xen/tmem: Use page_to_gfn rather than pfn_to_gfn
authorJulien Grall <julien.grall@citrix.com>
Mon, 27 Jul 2015 13:54:21 +0000 (14:54 +0100)
committerJulien Grall <julien.grall@citrix.com>
Tue, 4 Aug 2015 18:11:56 +0000 (19:11 +0100)
commit6549c3c054b49b61ee15a6c029f127002bcc6774
treec52d98bf5e6c9a66b6961c67393dc079f5c67223
parentf5e4e5af72f08fd9d6e699f0a51cbe141e7f6dbc
xen/tmem: Use page_to_gfn rather than pfn_to_gfn

All the caller of xen_tmem_{get,put}_page have a struct page * in hand
and call pfn_to_gfn for the only benefits of these 2 functions.

Rather than passing the pfn in parameter, pass directly the page and use
directly page_to_gfn.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: David Vrabel <david.vrabel@citrix.com>
drivers/xen/tmem.c