We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59df85d commit f6957b7Copy full SHA for f6957b7
fs/nfs/nfs4file.c
@@ -326,7 +326,7 @@ static struct file *__nfs42_ssc_open(struct vfsmount *ss_mnt,
326
char *read_name = NULL;
327
int len, status = 0;
328
329
- server = NFS_SERVER(ss_mnt->mnt_root->d_inode);
+ server = NFS_SB(ss_mnt->mnt_sb);
330
331
if (!fattr)
332
return ERR_PTR(-ENOMEM);
@@ -344,7 +344,7 @@ static struct file *__nfs42_ssc_open(struct vfsmount *ss_mnt,
344
goto out;
345
snprintf(read_name, len, SSC_READ_NAME_BODY, read_name_gen++);
346
347
- 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);
348
if (IS_ERR(r_ino)) {
349
res = ERR_CAST(r_ino);
350
goto out_free_name;
0 commit comments