m->mnt_root->d_inode->i_sb is a weird way to spell m->mnt_sb...
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 2 Mar 2022 01:35:41 +0000 (20:35 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 20 May 2022 03:25:45 +0000 (23:25 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nfs/nfs4file.c

index d258933cf8c881ab9242f264cb3b7bc65e658047..e6d44fae26ba84eeac5cad6bf5236a916233b06c 100644 (file)
@@ -326,7 +326,7 @@ static struct file *__nfs42_ssc_open(struct vfsmount *ss_mnt,
        char *read_name = NULL;
        int len, status = 0;
 
-       server = NFS_SERVER(ss_mnt->mnt_root->d_inode);
+       server = NFS_SB(ss_mnt->mnt_sb);
 
        if (!fattr)
                return ERR_PTR(-ENOMEM);
@@ -344,7 +344,7 @@ static struct file *__nfs42_ssc_open(struct vfsmount *ss_mnt,
                goto out;
        snprintf(read_name, len, SSC_READ_NAME_BODY, read_name_gen++);
 
-       r_ino = nfs_fhget(ss_mnt->mnt_root->d_inode->i_sb, src_fh, fattr);
+       r_ino = nfs_fhget(ss_mnt->mnt_sb, src_fh, fattr);
        if (IS_ERR(r_ino)) {
                res = ERR_CAST(r_ino);
                goto out_free_name;