Skip to content

Commit 4584f52

Browse files
Trond MyklebustTrond Myklebust
authored andcommitted
NFS: Fix NFS mountpoint crossing...
The check that was added to nfs_xdev_get_sb() to work around broken servers, works fine for NFSv2, but causes mountpoint crossing on NFSv3 to always return ESTALE. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent 75b8c13 commit 4584f52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/nfs/super.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ static int nfs_xdev_get_sb(struct file_system_type *fs_type, int flags,
14751475
error = PTR_ERR(mntroot);
14761476
goto error_splat_super;
14771477
}
1478-
if (mntroot->d_inode->i_op != &nfs_dir_inode_operations) {
1478+
if (mntroot->d_inode->i_op != server->nfs_client->rpc_ops->dir_inode_ops) {
14791479
dput(mntroot);
14801480
error = -ESTALE;
14811481
goto error_splat_super;

0 commit comments

Comments
 (0)