fuse: Call vfs_get_tree() for submounts
authorGreg Kurz <groug@kaod.org>
Fri, 4 Jun 2021 16:11:54 +0000 (18:11 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 22 Jun 2021 07:15:35 +0000 (09:15 +0200)
commit266eb3f2fae488fd19ee5acfc01ba9d483715699
tree8b775cbd04f2ea083f1ee0ef4f437d7fd341753a
parentfe0a7bd81bfefe5eb73bce55682586c6c266e21e
fuse: Call vfs_get_tree() for submounts

We recently fixed an infinite loop by setting the SB_BORN flag on
submounts along with the write barrier needed by super_cache_count().
This is the job of vfs_get_tree() and FUSE shouldn't have to care
about the barrier at all.

Split out some code from fuse_dentry_automount() to the dedicated
fuse_get_tree_submount() handler for submounts and call vfs_get_tree().

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dir.c
fs/fuse/inode.c