vhost: rename vhost_init_used()
authorGreg Kurz <gkurz@linux.vnet.ibm.com>
Tue, 16 Feb 2016 14:59:44 +0000 (15:59 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 2 Mar 2016 15:02:04 +0000 (17:02 +0200)
commit80f7d0301e7913f704d3505722f806717c61dff5
tree54483fc68aeb9f2764392eb116aebdb4fd254a0b
parentc507203756ca6303df2191c96c1385e965e2f0b7
vhost: rename vhost_init_used()

Looking at how callers use this, maybe we should just rename init_used
to vhost_vq_init_access. The _used suffix was a hint that we
access the vq used ring. But maybe what callers care about is
that it must be called after access_ok.

Also, this function manipulates the vq->is_le field which isn't related
to the vq used ring.

This patch simply renames vhost_init_used() to vhost_vq_init_access() as
suggested by Michael.

No behaviour change.

Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/net.c
drivers/vhost/scsi.c
drivers/vhost/test.c
drivers/vhost/vhost.c
drivers/vhost/vhost.h