summaryrefslogtreecommitdiffstats
path: root/drivers/block/xen-blkback/xenbus.c
diff options
context:
space:
mode:
authorJulien Grall2015-10-13 18:50:11 +0200
committerDavid Vrabel2015-10-23 15:20:46 +0200
commit9cce2914e2b21339dca12c91dc9f35790366cc4c (patch)
treef92428952bfd91dd0ff312608080e021e3f05190 /drivers/block/xen-blkback/xenbus.c
parentxen/arm: correct comment in enlighten.c (diff)
downloadkernel-qcow2-linux-9cce2914e2b21339dca12c91dc9f35790366cc4c.tar.gz
kernel-qcow2-linux-9cce2914e2b21339dca12c91dc9f35790366cc4c.tar.xz
kernel-qcow2-linux-9cce2914e2b21339dca12c91dc9f35790366cc4c.zip
xen/xenbus: Rename *RING_PAGE* to *RING_GRANT*
Linux may use a different page size than the size of grant. So make clear that the order is actually in number of grant. Signed-off-by: Julien Grall <julien.grall@citrix.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/block/xen-blkback/xenbus.c')
-rw-r--r--drivers/block/xen-blkback/xenbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c
index 01c6b41de4e5..f53cff42f8da 100644
--- a/drivers/block/xen-blkback/xenbus.c
+++ b/drivers/block/xen-blkback/xenbus.c
@@ -829,7 +829,7 @@ again:
static int connect_ring(struct backend_info *be)
{
struct xenbus_device *dev = be->dev;
- unsigned int ring_ref[XENBUS_MAX_RING_PAGES];
+ unsigned int ring_ref[XENBUS_MAX_RING_GRANTS];
unsigned int evtchn, nr_grefs, ring_page_order;
unsigned int pers_grants;
char protocol[64] = "";