diff options
author | Jeff Layton <jlayton@kernel.org> | 2022-10-18 14:47:55 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2022-11-28 20:54:44 +0300 |
commit | cb12fae1c34b1fa7eaae92c5aadc72d86d7fae19 (patch) | |
tree | fceddd06f54d356e18816dfa5718e3939874df92 /fs/nfsd/export.h | |
parent | 8e823bafff2308753d430566256c83d8085952da (diff) | |
download | linux-cb12fae1c34b1fa7eaae92c5aadc72d86d7fae19.tar.xz |
nfsd: move nfserrno() to vfs.c
nfserrno() is common to all nfs versions, but nfsproc.c is specifically
for NFSv2. Move it to vfs.c, and the prototype to vfs.h.
While we're in here, remove the #ifdef EDQUOT check in this function.
It's apparently a holdover from the initial merge of the nfsd code in
1997. No other place in the kernel checks that that symbol is defined
before using it, so I think we can dispense with it here.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/export.h')
-rw-r--r-- | fs/nfsd/export.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nfsd/export.h b/fs/nfsd/export.h index ee0e3aba4a6e..d03f7f6a8642 100644 --- a/fs/nfsd/export.h +++ b/fs/nfsd/export.h @@ -115,7 +115,6 @@ struct svc_export * rqst_find_fsidzero_export(struct svc_rqst *); int exp_rootfh(struct net *, struct auth_domain *, char *path, struct knfsd_fh *, int maxsize); __be32 exp_pseudoroot(struct svc_rqst *, struct svc_fh *); -__be32 nfserrno(int errno); static inline void exp_put(struct svc_export *exp) { |