]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/tmem: Use xen_page_to_gfn rather than pfn_to_gfn
authorJulien Grall <julien.grall@citrix.com>
Fri, 7 Aug 2015 16:34:38 +0000 (17:34 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 5 Feb 2016 11:43:36 +0000 (03:43 -0800)
commit35c203bcc5d4d3090c65706ff1465c00d1febef4
tree842c8cdded7c7d38fcf8c69e6f2c5c7054725607
parent3b5f308043907092625dd8815be195c1e6edb8c3
xen/tmem: Use xen_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 xen_page_to_gfn.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit a76e3cc32d872acd5104278d21d2084da07c16a8)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit a7bc23751de1b0b283306de2728b2ac1ef7da27c)
drivers/xen/tmem.c