VFS: Pass mount flags to sget()
Pass mount flags to sget() so that it can use them in initialising a new superblock before the set function is called. They could also be passed to the compare function. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -2419,7 +2419,7 @@ static struct dentry *nfs_fs_mount_common(struct file_system_type *fs_type,
|
||||
sb_mntdata.mntflags |= MS_SYNCHRONOUS;
|
||||
|
||||
/* Get a superblock - note that we may end up sharing one that already exists */
|
||||
s = sget(fs_type, compare_super, nfs_set_super, &sb_mntdata);
|
||||
s = sget(fs_type, compare_super, nfs_set_super, flags, &sb_mntdata);
|
||||
if (IS_ERR(s)) {
|
||||
mntroot = ERR_CAST(s);
|
||||
goto out_err_nosb;
|
||||
|
||||
Reference in New Issue
Block a user