summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4idmap.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2022-10-18 13:47:55 +0200
committerChuck Lever <chuck.lever@oracle.com>2022-11-28 18:54:44 +0100
commitcb12fae1c34b1fa7eaae92c5aadc72d86d7fae19 (patch)
treefceddd06f54d356e18816dfa5718e3939874df92 /fs/nfsd/nfs4idmap.c
parentnfsd: ignore requests to disable unsupported versions (diff)
downloadlinux-cb12fae1c34b1fa7eaae92c5aadc72d86d7fae19.tar.xz
linux-cb12fae1c34b1fa7eaae92c5aadc72d86d7fae19.zip
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/nfs4idmap.c')
-rw-r--r--fs/nfsd/nfs4idmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4idmap.c b/fs/nfsd/nfs4idmap.c
index e70a1a2999b7..5e9809aff37e 100644
--- a/fs/nfsd/nfs4idmap.c
+++ b/fs/nfsd/nfs4idmap.c
@@ -41,6 +41,7 @@
#include "idmap.h"
#include "nfsd.h"
#include "netns.h"
+#include "vfs.h"
/*
* Turn off idmapping when using AUTH_SYS.