summaryrefslogtreecommitdiffstats
path: root/fs/nfs/super.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2013-10-17 20:12:56 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-10-28 20:24:26 +0100
commitce6cda1845cf2332d2c411a5c72cd166256b21da (patch)
tree2f1b0640b5331726f1ff492c48d72ffafb0fd5bc /fs/nfs/super.c
parentNFS: Add method to retrieve fs_locations during migration recovery (diff)
downloadlinux-ce6cda1845cf2332d2c411a5c72cd166256b21da.tar.xz
linux-ce6cda1845cf2332d2c411a5c72cd166256b21da.zip
NFS: Add a super_block backpointer to the nfs_server struct
NFS_SB() returns the pointer to an nfs_server struct, given a pointer to a super_block. But we have no way to go back the other way. Add a super_block backpointer field so that, given an nfs_server struct, it is easy to get to the filesystem's root dentry. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r--fs/nfs/super.c1
1 files changed, 1 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,
mntroot = ERR_PTR(error);
goto error_splat_bdi;
}
+ server->super = s;
}
if (!s->s_root) {