]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/nfs/getroot.c
Merge branch 'nfs-for-2.6.39' into nfs-for-next
[karo-tx-linux.git] / fs / nfs / getroot.c
index 1084792bc0fec1fd2ecefd4a3cc04e7450c1bf7c..dcb61548887fdba13fc484c844aeb3a6b14a0fe9 100644 (file)
@@ -222,6 +222,10 @@ struct dentry *nfs4_get_root(struct super_block *sb, struct nfs_fh *mntfh,
                goto out;
        }
 
+       if (fattr->valid & NFS_ATTR_FATTR_FSID &&
+           !nfs_fsid_equal(&server->fsid, &fattr->fsid))
+               memcpy(&server->fsid, &fattr->fsid, sizeof(server->fsid));
+
        inode = nfs_fhget(sb, mntfh, fattr);
        if (IS_ERR(inode)) {
                dprintk("nfs_get_root: get root inode failed\n");