diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-12-11 19:01:45 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-12-11 19:01:45 -0500 |
commit | 4584f520e1f773082ef44ff4f8969a5d992b16ec (patch) | |
tree | 29621145a58f6073bdac2e42d38271a550b0d679 /fs/nfs | |
parent | 75b8c133267053c9986a7c8db5131f0e7349e806 (diff) | |
download | linux-stable-4584f520e1f773082ef44ff4f8969a5d992b16ec.tar.gz linux-stable-4584f520e1f773082ef44ff4f8969a5d992b16ec.tar.bz2 linux-stable-4584f520e1f773082ef44ff4f8969a5d992b16ec.zip |
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>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 2426e713b77f..ea929207f274 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -1475,7 +1475,7 @@ static int nfs_xdev_get_sb(struct file_system_type *fs_type, int flags, error = PTR_ERR(mntroot); goto error_splat_super; } - if (mntroot->d_inode->i_op != &nfs_dir_inode_operations) { + if (mntroot->d_inode->i_op != server->nfs_client->rpc_ops->dir_inode_ops) { dput(mntroot); error = -ESTALE; goto error_splat_super; |