Re: [PATCH 5/5] NFS: Save FSID's root FH in nfs_server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jun 25, 2013, at 12:37 PM, "Myklebust, Trond" <Trond.Myklebust@xxxxxxxxxx> wrote:

> On Tue, 2013-06-25 at 12:24 -0400, Chuck Lever wrote:
>> Save each FSID's root file handle in the FSID's nfs_server structure
>> on the client.  This is needed for NFSv4 migration recovery.
> 
> Please just use sb->s_root.

The migration recovery procedures do not take an inode or dentry argument.  All we have is an nfs_server.  I see

  struct nfs_server *server = NFS_SB(sb);

but what is the preferred method for going the other way?  A naive approach would be to plant a super_block back-pointer in each nfs_server.

-- 
Chuck Lever
chuck[dot]lever[at]oracle[dot]com




--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux