]> git.baikalelectronics.ru Git - kernel.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)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 23 Oct 2015 13:20:35 +0000 (14:20 +0100)
commite557277555d5225ea759f75963688d030a52d9b9
treec6dcd1771b20c0ba0465731e6a8cd9f0590a89fa
parent17922bce13b5bd42553e069fa7e585a990fda459
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