]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Add a super_block backpointer to the nfs_server struct
authorChuck Lever <chuck.lever@oracle.com>
Thu, 17 Oct 2013 18:12:56 +0000 (14:12 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 28 Oct 2013 19:24:26 +0000 (15:24 -0400)
commitb930e2901ff59447c40f7243b93c71ad46d1ef40
tree2f1b0640b5331726f1ff492c48d72ffafb0fd5bc
parent46ca4686dc21ad7c660202893797b01d2e294aa4
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>
fs/nfs/super.c
include/linux/nfs_fs_sb.h