fuse: Allow fuse_fill_super_common() for submounts
authorMax Reitz <mreitz@redhat.com>
Wed, 9 Sep 2020 15:52:17 +0000 (17:52 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 18 Sep 2020 13:17:41 +0000 (15:17 +0200)
commit1866d779d5d2abae59d304e809600ca3ca8d0071
treef6ab5f44aeefd72c9f37e477158ba409a3c35231
parentfcee216beb9c15c3e1466bb76575358415687c55
fuse: Allow fuse_fill_super_common() for submounts

Submounts have their own superblock, which needs to be initialized.
However, they do not have a fuse_fs_context associated with them, and
the root node's attributes should be taken from the mountpoint's node.

Extend fuse_fill_super_common() to work for submounts by making the @ctx
parameter optional, and by adding a @submount_finode parameter.

(There is a plain "unsigned" in an existing code block that is being
indented by this commit.  Extend it to "unsigned int" so checkpatch does
not complain.)

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/fuse_i.h
fs/fuse/inode.c