hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/fs/nfs/namespace.c
....@@ -147,7 +147,7 @@
147147 struct nfs_fs_context *ctx;
148148 struct fs_context *fc;
149149 struct vfsmount *mnt = ERR_PTR(-ENOMEM);
150
- struct nfs_server *server = NFS_SERVER(d_inode(path->dentry));
150
+ struct nfs_server *server = NFS_SB(path->dentry->d_sb);
151151 struct nfs_client *client = server->nfs_client;
152152 int timeout = READ_ONCE(nfs_mountpoint_expiry_timeout);
153153 int ret;