]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
vhost: switch to use vhost_add_used_n()
authorJason Wang <jasowang@redhat.com>
Mon, 2 Sep 2013 08:40:58 +0000 (16:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 02:46:57 +0000 (22:46 -0400)
commitc49e4e573be86acd36c747511ea5dc76be122206
tree682e11f8da283fb6ddc3ab5bd8bbae3486726afd
parentc92112aed3f0b14fdd2dbd9f192cce1af22c0e1c
vhost: switch to use vhost_add_used_n()

Let vhost_add_used() to use vhost_add_used_n() to reduce the code
duplication. To avoid the overhead brought by __copy_to_user(). We will use
put_user() when one used need to be added.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/vhost.c