]> www.infradead.org Git - users/jedix/linux-maple.git/commit
block/xen-blkfront: Store a page rather a pfn in the grant structure
authorJulien Grall <julien.grall@citrix.com>
Tue, 30 Jun 2015 10:58:51 +0000 (11:58 +0100)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:07 +0000 (02:01 +0100)
commit411ea8a919a657f573601a30af36cb0b91d028ea
tree56e025a3d34e17da616afe280c98b98e2204f07f
parentca843d60b77cb1e7e63667effc7a364e6ef992b6
block/xen-blkfront: Store a page rather a pfn in the grant structure

All the usage of the field pfn are done using the same idiom:

pfn_to_page(grant->pfn)

This will  return always the same page. Store directly the page in the
grant to clean up the code.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit a7a6df222351de23791bb64165f14c21ff4d1653)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/block/xen-blkfront.c