]> asedeno.scripts.mit.edu Git - linux.git/commit
virtiofs: Use a common function to send forget
authorVivek Goyal <vgoyal@redhat.com>
Wed, 30 Oct 2019 15:07:17 +0000 (11:07 -0400)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 22 Nov 2019 12:29:49 +0000 (13:29 +0100)
commit58ada94f95f71d4f73197ab0e9603dbba6e47fe3
treeaa48751b694d11b6d946cb5e9c717105b28dbe16
parent00929447f5758c4f64c74d0a4b40a6eb3d9df0e3
virtiofs: Use a common function to send forget

Currently we are duplicating logic to send forgets at two
places. Consolidate the code by calling one helper function.

This also uses virtqueue_add_outbuf() instead of
virtqueue_add_sgs(). Former is simpler to call.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/virtio_fs.c