From: Michael S. Tsirkin Date: Wed, 25 Feb 2015 14:19:28 +0000 (+0100) Subject: vhost: cleanup iterator update logic X-Git-Tag: omap-for-v4.1/wl12xx-dt~68^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c5a84421c7d1c259c3883a404f9a67a2f55b003;p=pandora-kernel.git vhost: cleanup iterator update logic Recent iterator-related changes in vhost made it harder to follow the logic fixing up the header. In fact, the fixup always happens at the same offset: sizeof(virtio_net_hdr): sometimes the fixup iterator is updated by copy_to_iter, sometimes-by iov_iter_advance. Rearrange code to make this obvious. Signed-off-by: Michael S. Tsirkin Signed-off-by: David S. Miller --- Reading git-diff-tree failed