aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/export.c
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2014-05-23 08:55:43 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-05-30 17:32:23 -0400
commite6d615f7428bb9a202f7fab563e917e89169d349 (patch)
tree249bb26c447504250b931570964a12c6afa860d7 /fs/nfsd/export.c
parenta30ae94c0797f9de47626eecc43359989447d7a3 (diff)
NFSD: Remove typedef of svc_client and svc_export in export.c
No need for a typedef wrapper for svc_export or svc_client, remove them. Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/export.c')
-rw-r--r--fs/nfsd/export.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
index 1d6d7bd0c211..858c536c4c1d 100644
--- a/fs/nfsd/export.c
+++ b/fs/nfsd/export.c
@@ -23,9 +23,6 @@
23 23
24#define NFSDDBG_FACILITY NFSDDBG_EXPORT 24#define NFSDDBG_FACILITY NFSDDBG_EXPORT
25 25
26typedef struct auth_domain svc_client;
27typedef struct svc_export svc_export;
28
29/* 26/*
30 * We have two caches. 27 * We have two caches.
31 * One maps client+vfsmnt+dentry to export options - the export map 28 * One maps client+vfsmnt+dentry to export options - the export map
@@ -783,7 +780,7 @@ svc_export_update(struct svc_export *new, struct svc_export *old)
783 780
784 781
785static struct svc_expkey * 782static struct svc_expkey *
786exp_find_key(struct cache_detail *cd, svc_client *clp, int fsid_type, 783exp_find_key(struct cache_detail *cd, struct auth_domain *clp, int fsid_type,
787 u32 *fsidv, struct cache_req *reqp) 784 u32 *fsidv, struct cache_req *reqp)
788{ 785{
789 struct svc_expkey key, *ek; 786 struct svc_expkey key, *ek;
@@ -805,9 +802,9 @@ exp_find_key(struct cache_detail *cd, svc_client *clp, int fsid_type,
805 return ek; 802 return ek;
806} 803}
807 804
808 805static struct svc_export *
809static svc_export *exp_get_by_name(struct cache_detail *cd, svc_client *clp, 806exp_get_by_name(struct cache_detail *cd, struct auth_domain *clp,
810 const struct path *path, struct cache_req *reqp) 807 const struct path *path, struct cache_req *reqp)
811{ 808{
812 struct svc_export *exp, key; 809 struct svc_export *exp, key;
813 int err; 810 int err;
@@ -831,11 +828,11 @@ static svc_export *exp_get_by_name(struct cache_detail *cd, svc_client *clp,
831/* 828/*
832 * Find the export entry for a given dentry. 829 * Find the export entry for a given dentry.
833 */ 830 */
834static struct svc_export *exp_parent(struct cache_detail *cd, svc_client *clp, 831static struct svc_export *
835 struct path *path) 832exp_parent(struct cache_detail *cd, struct auth_domain *clp, struct path *path)
836{ 833{
837 struct dentry *saved = dget(path->dentry); 834 struct dentry *saved = dget(path->dentry);
838 svc_export *exp = exp_get_by_name(cd, clp, path, NULL); 835 struct svc_export *exp = exp_get_by_name(cd, clp, path, NULL);
839 836
840 while (PTR_ERR(exp) == -ENOENT && !IS_ROOT(path->dentry)) { 837 while (PTR_ERR(exp) == -ENOENT && !IS_ROOT(path->dentry)) {
841 struct dentry *parent = dget_parent(path->dentry); 838 struct dentry *parent = dget_parent(path->dentry);
@@ -856,7 +853,7 @@ static struct svc_export *exp_parent(struct cache_detail *cd, svc_client *clp,
856 * since its harder to fool a kernel module than a user space program. 853 * since its harder to fool a kernel module than a user space program.
857 */ 854 */
858int 855int
859exp_rootfh(struct net *net, svc_client *clp, char *name, 856exp_rootfh(struct net *net, struct auth_domain *clp, char *name,
860 struct knfsd_fh *f, int maxsize) 857 struct knfsd_fh *f, int maxsize)
861{ 858{
862 struct svc_export *exp; 859 struct svc_export *exp;