aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/super.c1
-rw-r--r--include/linux/nfs_fs_sb.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 3f5a7a85c9c2..e26647be69ce 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -2534,6 +2534,7 @@ struct dentry *nfs_fs_mount_common(struct nfs_server *server,
2534 mntroot = ERR_PTR(error); 2534 mntroot = ERR_PTR(error);
2535 goto error_splat_bdi; 2535 goto error_splat_bdi;
2536 } 2536 }
2537 server->super = s;
2537 } 2538 }
2538 2539
2539 if (!s->s_root) { 2540 if (!s->s_root) {
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h
index f9c0a6cb41e9..46b0cb4bee09 100644
--- a/include/linux/nfs_fs_sb.h
+++ b/include/linux/nfs_fs_sb.h
@@ -148,6 +148,7 @@ struct nfs_server {
148 __u64 maxfilesize; /* maximum file size */ 148 __u64 maxfilesize; /* maximum file size */
149 struct timespec time_delta; /* smallest time granularity */ 149 struct timespec time_delta; /* smallest time granularity */
150 unsigned long mount_time; /* when this fs was mounted */ 150 unsigned long mount_time; /* when this fs was mounted */
151 struct super_block *super; /* VFS super block */
151 dev_t s_dev; /* superblock dev numbers */ 152 dev_t s_dev; /* superblock dev numbers */
152 153
153#ifdef CONFIG_NFS_FSCACHE 154#ifdef CONFIG_NFS_FSCACHE