|
@@ -299,6 +299,7 @@ nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr)
|
|
|
else
|
|
|
inode->i_op = &nfs_mountpoint_inode_operations;
|
|
|
inode->i_fop = NULL;
|
|
|
+ set_bit(NFS_INO_MOUNTPOINT, &nfsi->flags);
|
|
|
}
|
|
|
} else if (S_ISLNK(inode->i_mode))
|
|
|
inode->i_op = &nfs_symlink_inode_operations;
|
|
@@ -1003,8 +1004,9 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr)
|
|
|
|
|
|
server = NFS_SERVER(inode);
|
|
|
/* Update the fsid? */
|
|
|
- if (S_ISDIR(inode->i_mode)
|
|
|
- && !nfs_fsid_equal(&server->fsid, &fattr->fsid))
|
|
|
+ if (S_ISDIR(inode->i_mode) &&
|
|
|
+ !nfs_fsid_equal(&server->fsid, &fattr->fsid) &&
|
|
|
+ !test_bit(NFS_INO_MOUNTPOINT, &nfsi->flags))
|
|
|
server->fsid = fattr->fsid;
|
|
|
|
|
|
/*
|