Use struct path in struct svc_export
I'm embedding struct path into struct svc_export. [akpm@linux-foundation.org: coding-style fixes] [ezk@cs.sunysb.edu: NFSD: fix wrong mnt_writer count in rename] Signed-off-by: Jan Blunck <jblunck@suse.de> Acked-by: J. Bruce Fields <bfields@citi.umich.edu> Acked-by: Christoph Hellwig <hch@infradead.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: "J. Bruce Fields" <bfields@fieldses.org> Cc: Neil Brown <neilb@suse.de> Cc: Trond Myklebust <trond.myklebust@fys.uio.no> Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
448678a0f3
commit
5477549161
@@ -41,7 +41,7 @@ static __be32
|
||||
nfsd_return_attrs(__be32 err, struct nfsd_attrstat *resp)
|
||||
{
|
||||
if (err) return err;
|
||||
return nfserrno(vfs_getattr(resp->fh.fh_export->ex_mnt,
|
||||
return nfserrno(vfs_getattr(resp->fh.fh_export->ex_path.mnt,
|
||||
resp->fh.fh_dentry,
|
||||
&resp->stat));
|
||||
}
|
||||
@@ -49,7 +49,7 @@ static __be32
|
||||
nfsd_return_dirop(__be32 err, struct nfsd_diropres *resp)
|
||||
{
|
||||
if (err) return err;
|
||||
return nfserrno(vfs_getattr(resp->fh.fh_export->ex_mnt,
|
||||
return nfserrno(vfs_getattr(resp->fh.fh_export->ex_path.mnt,
|
||||
resp->fh.fh_dentry,
|
||||
&resp->stat));
|
||||
}
|
||||
@@ -164,7 +164,7 @@ nfsd_proc_read(struct svc_rqst *rqstp, struct nfsd_readargs *argp,
|
||||
&resp->count);
|
||||
|
||||
if (nfserr) return nfserr;
|
||||
return nfserrno(vfs_getattr(resp->fh.fh_export->ex_mnt,
|
||||
return nfserrno(vfs_getattr(resp->fh.fh_export->ex_path.mnt,
|
||||
resp->fh.fh_dentry,
|
||||
&resp->stat));
|
||||
}
|
||||
|
Reference in New Issue
Block a user