aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-06-05 13:26:15 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-10 23:40:24 -0400
commita0356862bcbeb20acf64bc1a82d28a4c5bb957a7 (patch)
tree20dd38a076a17c35e63eadddc77ccf0f3633f377 /fs/nfs/inode.c
parentb39e625b6e75aa70e26c13f9378756bb5f2af032 (diff)
NFS: Fix nfs_reval_fsid()
We don't need to revalidate the fsid on the root directory. It suffices to revalidate it on the current directory. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r--fs/nfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index 23ecf0334a18..7bcb3dfa6179 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -961,8 +961,8 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr)
961 goto out_changed; 961 goto out_changed;
962 962
963 server = NFS_SERVER(inode); 963 server = NFS_SERVER(inode);
964 /* Update the fsid if and only if this is the root directory */ 964 /* Update the fsid? */
965 if (inode == inode->i_sb->s_root->d_inode 965 if (S_ISDIR(inode->i_mode)
966 && !nfs_fsid_equal(&server->fsid, &fattr->fsid)) 966 && !nfs_fsid_equal(&server->fsid, &fattr->fsid))
967 server->fsid = fattr->fsid; 967 server->fsid = fattr->fsid;
968 968