summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorXie Yongji <xieyongji@bytedance.com>2022-08-03 07:55:20 +0300
committerMichael S. Tsirkin <mst@redhat.com>2022-08-11 11:26:08 +0300
commit82eb46f94ae5faa87ace248d950292c87384a097 (patch)
tree59bc34926c52e9c16aba821a508226adf9715c7f /.clang-format
parentc32ee693125aa19a021dad32abbd49f5c6f70031 (diff)
downloadlinux-82eb46f94ae5faa87ace248d950292c87384a097.tar.xz
vduse: Use memcpy_{to,from}_page() in do_bounce()
kmap_atomic() is being deprecated in favor of kmap_local_page(). The use of kmap_atomic() in do_bounce() is all thread local therefore kmap_local_page() is a sufficient replacement. Convert to kmap_local_page() but, instead of open coding it, use the helpers memcpy_to_page() and memcpy_from_page(). Signed-off-by: Xie Yongji <xieyongji@bytedance.com> Acked-by: Jason Wang <jasowang@redhat.com> Reviewed-by: Muchun Song <songmuchun@bytedance.com> Message-Id: <20220803045523.23851-3-xieyongji@bytedance.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions