Commit cce76f9b9696a59974be9ed43478c000c57e597a

Authored by Adrian Bunk
Committed by Linus Torvalds
1 parent e8a285b7b1

fs/nfsd/export.c: make 3 functions static

This patch makes the following needlessly global functions static:
- exp_get_by_name()
- exp_parent()
- exp_find()

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Neil Brown <neilb@suse.de>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 2 changed files with 8 additions and 20 deletions Side-by-side Diff

... ... @@ -861,9 +861,9 @@
861 861 return exp_find_key(clp, FSID_NUM, fsidv, NULL);
862 862 }
863 863  
864   -svc_export *
865   -exp_get_by_name(svc_client *clp, struct vfsmount *mnt, struct dentry *dentry,
866   - struct cache_req *reqp)
  864 +static svc_export *exp_get_by_name(svc_client *clp, struct vfsmount *mnt,
  865 + struct dentry *dentry,
  866 + struct cache_req *reqp)
867 867 {
868 868 struct svc_export *exp, key;
869 869 int err;
... ... @@ -887,9 +887,9 @@
887 887 /*
888 888 * Find the export entry for a given dentry.
889 889 */
890   -struct svc_export *
891   -exp_parent(svc_client *clp, struct vfsmount *mnt, struct dentry *dentry,
892   - struct cache_req *reqp)
  890 +static struct svc_export *exp_parent(svc_client *clp, struct vfsmount *mnt,
  891 + struct dentry *dentry,
  892 + struct cache_req *reqp)
893 893 {
894 894 svc_export *exp;
895 895  
... ... @@ -1214,9 +1214,8 @@
1214 1214 return err;
1215 1215 }
1216 1216  
1217   -struct svc_export *
1218   -exp_find(struct auth_domain *clp, int fsid_type, u32 *fsidv,
1219   - struct cache_req *reqp)
  1217 +static struct svc_export *exp_find(struct auth_domain *clp, int fsid_type,
  1218 + u32 *fsidv, struct cache_req *reqp)
1220 1219 {
1221 1220 struct svc_export *exp;
1222 1221 struct svc_expkey *ek = exp_find_key(clp, fsid_type, fsidv, reqp);
include/linux/nfsd/export.h
... ... @@ -127,17 +127,9 @@
127 127 void nfsd_export_flush(void);
128 128 void exp_readlock(void);
129 129 void exp_readunlock(void);
130   -struct svc_export * exp_get_by_name(struct auth_domain *clp,
131   - struct vfsmount *mnt,
132   - struct dentry *dentry,
133   - struct cache_req *reqp);
134 130 struct svc_export * rqst_exp_get_by_name(struct svc_rqst *,
135 131 struct vfsmount *,
136 132 struct dentry *);
137   -struct svc_export * exp_parent(struct auth_domain *clp,
138   - struct vfsmount *mnt,
139   - struct dentry *dentry,
140   - struct cache_req *reqp);
141 133 struct svc_export * rqst_exp_parent(struct svc_rqst *,
142 134 struct vfsmount *mnt,
143 135 struct dentry *dentry);
... ... @@ -157,9 +149,6 @@
157 149 {
158 150 cache_get(&exp->h);
159 151 }
160   -extern struct svc_export *
161   -exp_find(struct auth_domain *clp, int fsid_type, u32 *fsidv,
162   - struct cache_req *reqp);
163 152 struct svc_export * rqst_exp_find(struct svc_rqst *, int, u32 *);
164 153  
165 154 #endif /* __KERNEL__ */