diff options
| author | Kinglong Mee <kinglongmee@gmail.com> | 2014-05-23 08:55:43 -0400 |
|---|---|---|
| committer | J. Bruce Fields <bfields@redhat.com> | 2014-05-30 17:32:23 -0400 |
| commit | e6d615f7428bb9a202f7fab563e917e89169d349 (patch) | |
| tree | 249bb26c447504250b931570964a12c6afa860d7 | |
| parent | a30ae94c0797f9de47626eecc43359989447d7a3 (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>
| -rw-r--r-- | fs/nfsd/export.c | 19 |
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 | ||
| 26 | typedef struct auth_domain svc_client; | ||
| 27 | typedef 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 | ||
| 785 | static struct svc_expkey * | 782 | static struct svc_expkey * |
| 786 | exp_find_key(struct cache_detail *cd, svc_client *clp, int fsid_type, | 783 | exp_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 | 805 | static struct svc_export * | |
| 809 | static svc_export *exp_get_by_name(struct cache_detail *cd, svc_client *clp, | 806 | exp_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 | */ |
| 834 | static struct svc_export *exp_parent(struct cache_detail *cd, svc_client *clp, | 831 | static struct svc_export * |
| 835 | struct path *path) | 832 | exp_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 | */ |
| 858 | int | 855 | int |
| 859 | exp_rootfh(struct net *net, svc_client *clp, char *name, | 856 | exp_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; |
