OSDN Git Service

fuse: extract fuse_fill_super_common()
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 13 Jun 2018 09:23:04 +0000 (10:23 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 12 Sep 2019 12:59:40 +0000 (14:59 +0200)
commit0cc2656cdb0b1f234e6d29378cb061e29d7522bc
tree131a397c92997fcfac727b37f1237b31b68c3f55
parent4388c5aac4bae5c83a2c66882043942002ba09a2
fuse: extract fuse_fill_super_common()

fuse_fill_super() includes code to process the fd= option and link the
struct fuse_dev to the fd's struct file.  In virtio-fs there is no file
descriptor because /dev/fuse is not used.

This patch extracts fuse_fill_super_common() so that both classic fuse and
virtio-fs can share the code to initialize a mount.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/fuse_i.h
fs/fuse/inode.c