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)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 23 Oct 2015 13:20:35 +0000 (14:20 +0100)
commita7a6df222351de23791bb64165f14c21ff4d1653
treec6dcd1771b20c0ba0465731e6a8cd9f0590a89fa
parent33204663ef85d9ce79009b2246afe6a2fef8eb1b
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>
drivers/block/xen-blkfront.c