--- a/fs/nfs/super.c 2007-12-19 14:00:15.000000000 -0800 +++ b/fs/nfs/super.c 2007-12-19 14:03:23.000000000 -0800 @@ -859,6 +859,9 @@ struct dentry *mntroot; char *mntpath = NULL, *hostname = NULL, ip_addr[16]; void *p; + struct nfs_sb_mountdata sb_mntdata = { + .mntflags = flags, + }; int error; if (data == NULL) { @@ -929,9 +932,10 @@ error = PTR_ERR(server); goto out_err_noserver; } + sb_mntdata.server = server; /* Get a superblock - note that we may end up sharing one that already exists */ - s = sget(fs_type, nfs_compare_super, nfs_set_super, server); + s = sget(fs_type, nfs_compare_super, nfs_set_super, &sb_mntdata); if (IS_ERR(s)) { error = PTR_ERR(s); goto out_free;