diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-06-05 13:26:15 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-10 23:40:24 -0400 |
commit | a0356862bcbeb20acf64bc1a82d28a4c5bb957a7 (patch) | |
tree | 20dd38a076a17c35e63eadddc77ccf0f3633f377 /fs/nfs/inode.c | |
parent | b39e625b6e75aa70e26c13f9378756bb5f2af032 (diff) | |
download | op-kernel-dev-a0356862bcbeb20acf64bc1a82d28a4c5bb957a7.zip op-kernel-dev-a0356862bcbeb20acf64bc1a82d28a4c5bb957a7.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 23ecf03..7bcb3df 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) goto out_changed; server = NFS_SERVER(inode); - /* Update the fsid if and only if this is the root directory */ - if (inode == inode->i_sb->s_root->d_inode + /* Update the fsid? */ + if (S_ISDIR(inode->i_mode) && !nfs_fsid_equal(&server->fsid, &fattr->fsid)) server->fsid = fattr->fsid; |