nfsd: move nfserrno() to vfs.c
authorJeff Layton <jlayton@kernel.org>
Tue, 18 Oct 2022 11:47:55 +0000 (07:47 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 28 Nov 2022 17:54:44 +0000 (12:54 -0500)
commitcb12fae1c34b1fa7eaae92c5aadc72d86d7fae19
treefceddd06f54d356e18816dfa5718e3939874df92
parent8e823bafff2308753d430566256c83d8085952da
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>
fs/nfsd/blocklayout.c
fs/nfsd/blocklayoutxdr.c
fs/nfsd/export.h
fs/nfsd/flexfilelayout.c
fs/nfsd/nfs4idmap.c
fs/nfsd/nfsproc.c
fs/nfsd/vfs.c
fs/nfsd/vfs.h