summaryrefslogtreecommitdiff
path: root/drivers/vhost/test.c
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2013-09-02 16:40:58 +0800
committerDavid S. Miller <davem@davemloft.net>2013-09-03 22:46:57 -0400
commitc49e4e573be86acd36c747511ea5dc76be122206 (patch)
tree682e11f8da283fb6ddc3ab5bd8bbae3486726afd /drivers/vhost/test.c
parentc92112aed3f0b14fdd2dbd9f192cce1af22c0e1c (diff)
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>
Diffstat (limited to 'drivers/vhost/test.c')
0 files changed, 0 insertions, 0 deletions