commit | c49e4e573be86acd36c747511ea5dc76be122206 | [log] [tgz] |
---|---|---|
author | Jason Wang <jasowang@redhat.com> | Mon Sep 02 16:40:58 2013 +0800 |
committer | David S. Miller <davem@davemloft.net> | Tue Sep 03 22:46:57 2013 -0400 |
tree | 682e11f8da283fb6ddc3ab5bd8bbae3486726afd | |
parent | c92112aed3f0b14fdd2dbd9f192cce1af22c0e1c [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>