From: Jason Wang Date: Mon, 2 Sep 2013 08:40:58 +0000 (+0800) Subject: vhost: switch to use vhost_add_used_n() X-Git-Tag: v3.12-rc1~132^2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c49e4e573be86acd36c747511ea5dc76be122206;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed