aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/dir.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index 9b0c55cb2a2e..4ad7fff9ccaf 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -469,6 +469,8 @@ void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry)
469 struct inode *inode; 469 struct inode *inode;
470 int status; 470 int status;
471 471
472 if (!(entry->fattr->valid & NFS_ATTR_FATTR_FSID))
473 return;
472 if (filename.name[0] == '.') { 474 if (filename.name[0] == '.') {
473 if (filename.len == 1) 475 if (filename.len == 1)
474 return; 476 return;
@@ -479,6 +481,10 @@ void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry)
479 481
480 dentry = d_lookup(parent, &filename); 482 dentry = d_lookup(parent, &filename);
481 if (dentry != NULL) { 483 if (dentry != NULL) {
484 /* Is there a mountpoint here? If so, just exit */
485 if (!nfs_fsid_equal(&NFS_SB(dentry->d_sb)->fsid,
486 &entry->fattr->fsid))
487 goto out;
482 if (nfs_same_file(dentry, entry)) { 488 if (nfs_same_file(dentry, entry)) {
483 nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); 489 nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
484 status = nfs_refresh_inode(dentry->d_inode, entry->fattr); 490 status = nfs_refresh_inode(dentry->d_inode, entry->fattr);