summary refs log tree commit diff stats
path: root/hw/acpi/pci.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2021-02-04 15:02:06 +0000
committerDr. David Alan Gilbert <dgilbert@redhat.com>2021-02-04 17:32:53 +0000
commit8afaaee976965b7fb90ec225a51d60f35c5f173c (patch)
tree9a511b98f29e3558c13c1ffef879da0e78fe4af7 /hw/acpi/pci.c
parent1ba089f2255bfdb071be3ce6ac6c3069e8012179 (diff)
downloadfocaccia-qemu-8afaaee976965b7fb90ec225a51d60f35c5f173c.tar.gz
focaccia-qemu-8afaaee976965b7fb90ec225a51d60f35c5f173c.zip
virtiofsd: extract lo_do_open() from lo_open()
Both lo_open() and lo_create() have similar code to open a file. Extract
a common lo_do_open() function from lo_open() that will be used by
lo_create() in a later commit.

Since lo_do_open() does not otherwise need fuse_req_t req, convert
lo_add_fd_mapping() to use struct lo_data *lo instead.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20210204150208.367837-2-stefanha@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'hw/acpi/pci.c')
0 files changed, 0 insertions, 0 deletions