summaryrefslogtreecommitdiffstats
path: root/fs/vboxsf/vfsmod.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2021-02-14 00:12:23 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2021-03-12 22:15:00 -0500
commite98f93e7ca71da61bc2ae7f433022e80bcb07d21 (patch)
treeb31f17632e4d56e2aa97105f21e59d1bb34bc945 /fs/vboxsf/vfsmod.h
parent6e1eb04a87f954eb06a89ee6034c166351dfff6e (diff)
downloadlinux-e98f93e7ca71da61bc2ae7f433022e80bcb07d21.tar.bz2
vboxsf: don't allow to change the inode type
vboxsf_init_inode() is used both for initial setup of inode and for metadata updates. Tell it whether we are updating a live inode or setting up a new instance and have it refuse to change type in the former case. [fixed the braino caught by Hans de Goede <hdegoede@redhat.com>] Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/vboxsf/vfsmod.h')
-rw-r--r--fs/vboxsf/vfsmod.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/vboxsf/vfsmod.h b/fs/vboxsf/vfsmod.h
index 760524e78c88..6a7a9cedebc6 100644
--- a/fs/vboxsf/vfsmod.h
+++ b/fs/vboxsf/vfsmod.h
@@ -82,8 +82,8 @@ extern const struct dentry_operations vboxsf_dentry_ops;
/* from utils.c */
struct inode *vboxsf_new_inode(struct super_block *sb);
-void vboxsf_init_inode(struct vboxsf_sbi *sbi, struct inode *inode,
- const struct shfl_fsobjinfo *info);
+int vboxsf_init_inode(struct vboxsf_sbi *sbi, struct inode *inode,
+ const struct shfl_fsobjinfo *info, bool reinit);
int vboxsf_create_at_dentry(struct dentry *dentry,
struct shfl_createparms *params);
int vboxsf_stat(struct vboxsf_sbi *sbi, struct shfl_string *path,