]> git.proxmox.com Git - mirror_qemu.git/commit
virtiofsd: optionally return inode pointer from lo_do_lookup()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 4 Feb 2021 15:02:07 +0000 (15:02 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 4 Feb 2021 17:34:35 +0000 (17:34 +0000)
commit22d2ece71e533310da31f2857ebc4a00d91968b3
tree41d244e412e3e5adfc97462e5fb291c00553d53f
parent8afaaee976965b7fb90ec225a51d60f35c5f173c
virtiofsd: optionally return inode pointer from lo_do_lookup()

lo_do_lookup() finds an existing inode or allocates a new one. It
increments nlookup so that the inode stays alive until the client
releases it.

Existing callers don't need the struct lo_inode so the function doesn't
return it. Extend the function to optionally return the inode. The next
commit will need it.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-Id: <20210204150208.367837-3-stefanha@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/passthrough_ll.c